added screenshot

This commit is contained in:
ArshErgon 2022-09-25 14:54:22 +04:30
parent eccd20a234
commit 41c4b962d4
4 changed files with 34 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
venv
__pycache__

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(2)
print("Captured the screen now")
screenshot_img = pyautogui.screenshot()
screenshot_img.save("screen.png")
if __name__ == '__main__':
screenshot_fun()