Articles → Python → Screenshot Function Pyautogui

Screenshot Function Pyautogui






Purpose





Example


import pyautogui

pyautogui.screenshot("my_screenshot.png", region=(0,0, 300, 400))




  1. First parameter specifies the file name by which screen shot is saved.
  2. Second parameter specifies the region of screen.

Output


Picture showing the output of screenshot function pyautogui
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Friday, May 24, 2019

Query/Feedback


Your Email Id  
 
Subject 
 
Query/FeedbackCharacters remaining 250