How to control mouse using python code example Example: how to move mouse python import pyautogui pyautogui.moveTo(100, 100, duration = 1)