how to take screenshot using pyautogui code example
Example 1: screenshot in python
import pyautogui
class gng() :
myScreenshot = pyautogui.screenshot()
myScreenshot.save('C:\File\Code\save.png')
gng()
Example 2: python pyautogui how to change the screenshot location
pyautogui.screenshot(region=(0,0, 300, 400))
#Thank me later