pyautogui locate on screen region to click code example
Example: screenshot region pyautogui
>>> import pyautogui
>>> im = pyautogui.screenshot(region=(0,0, 300, 400))
>>> import pyautogui
>>> im = pyautogui.screenshot(region=(0,0, 300, 400))