how to hold down mouse button in python code example Example: pyautogui mouse up mouse down >>> import pyautogui >>> pyautogui.click(10, 5)