how to get mouse co ordinates with pyautogui code example Example: py get mouse coordinates import pyautogui pos = pyautogui.position()