Merge pull request #8 from ArshErgon/screenshot

added screenshot
This commit is contained in:
Advaita Saha 2022-10-01 00:59:00 +05:30 committed by GitHub
commit 09463b0965
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,9 @@
## Screen Shot CLI proudly made with Python
### Installation
```
$ pip install -i requirements.txt
$ python3 screen_shot.py
```
> change the sleep time if for you its take time to minimize the Terminal window. Images will be save inside the present folder

View File

@ -0,0 +1,9 @@
MouseInfo==0.1.3
PyAutoGUI==0.9.53
PyGetWindow==0.0.9
PyMsgBox==1.0.9
pyperclip==1.8.2
PyRect==0.2.0
PyScreeze==0.1.28
python3-xlib==0.15
pytweening==1.0.4

View File

@ -0,0 +1,14 @@
import pyautogui
from time import sleep
def screenshot_fun():
print("Screenshot program runs on console\nchange the sleep time if you can the screenshot captured the terminal also")
sleepTimer = 2
print(f"You've {sleepTimer} to minimize the terminal window")
sleep(sleepTimer)
print("Captured the screen now")
screenshot_img = pyautogui.screenshot()
screenshot_img.save("screen.png")
if __name__ == '__main__':
screenshot_fun()