Skip to content

Instantly share code, notes, and snippets.

@KaushikShresth07
Created June 12, 2021 13:32
Show Gist options
  • Save KaushikShresth07/c1f928c6ae52153b3a04d2033257e03f to your computer and use it in GitHub Desktop.
Save KaushikShresth07/c1f928c6ae52153b3a04d2033257e03f to your computer and use it in GitHub Desktop.
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