mirror of
https://github.com/metafy-social/python-scripts.git
synced 2025-01-05 17:07:05 +00:00
Update screen_shot.py
This commit is contained in:
parent
41c4b962d4
commit
4d2dd3460f
|
@ -5,7 +5,7 @@ def screenshot_fun():
|
||||||
print("Screenshot program runs on console\nchange the sleep time if you can the screenshot captured the terminal also")
|
print("Screenshot program runs on console\nchange the sleep time if you can the screenshot captured the terminal also")
|
||||||
sleepTimer = 2
|
sleepTimer = 2
|
||||||
print(f"You've {sleepTimer} to minimize the terminal window")
|
print(f"You've {sleepTimer} to minimize the terminal window")
|
||||||
sleep(2)
|
sleep(sleepTimer)
|
||||||
print("Captured the screen now")
|
print("Captured the screen now")
|
||||||
screenshot_img = pyautogui.screenshot()
|
screenshot_img = pyautogui.screenshot()
|
||||||
screenshot_img.save("screen.png")
|
screenshot_img.save("screen.png")
|
||||||
|
|
Loading…
Reference in New Issue
Block a user