how to read mouse position in python code example Example: get mouse postition python >>> import pyautogui >>> pyautogui.position()