I needed to save a screenshot of the extended screen, so I wrote it simply.
prtsc.py
import pyautogui
from PIL import ImageGrab
#Specify the location and file name you want to save
fo = r"C:\Users\hoge\Pictures\Screenshots\desktop.png "
pyautogui.press('printscreen')
im = ImageGrab.grabclipboard()
im.save(fo)
Please google to install PyAutoGUI and PIL of your module. I don't remember ...
Recommended Posts