how to find mouse coordinates in pyautogui code example Example: py get mouse coordinates import pyautogui pos = pyautogui.position()