mirror of
https://github.com/metafy-social/python-scripts.git
synced 2024-11-23 20:11:10 +00:00
added screenshot
This commit is contained in:
parent
eccd20a234
commit
41c4b962d4
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
venv
|
||||
__pycache__
|
9
scripts/Screen_Shot/ReadMe.md
Normal file
9
scripts/Screen_Shot/ReadMe.md
Normal 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
|
9
scripts/Screen_Shot/requirements.txt
Normal file
9
scripts/Screen_Shot/requirements.txt
Normal 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
|
14
scripts/Screen_Shot/screen_shot.py
Normal file
14
scripts/Screen_Shot/screen_shot.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user