Articles → Python → Screenshot Function Pyautogui
Screenshot Function Pyautogui
Purpose
Example
import pyautogui
pyautogui.screenshot("my_screenshot.png", region=(0,0, 300, 400))
- First parameter specifies the file name by which screen shot is saved.
- Second parameter specifies the region of screen.
Output
Click to Enlarge