Created
June 12, 2021 13:32
-
-
Save KaushikShresth07/c1f928c6ae52153b3a04d2033257e03f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pyautogui | |
| import os | |
| def screenshot(FileName,PathToSave): | |
| path1name = FileName + ".png" | |
| path1 = str(PathToSave) + path1name | |
| kk = pyautogui.screenshot() | |
| kk.save(path1) | |
| os.startfile(path1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment