python how to get cursor info code example Example: py get mouse coordinates import pyautogui pos = pyautogui.position()