pyautogui.click(img) code example Example: screenshot region pyautogui >>> import pyautogui >>> im = pyautogui.screenshot(region=(0,0, 300, 400))