import pyautogui from time import sleep pyautogui.moveTo(1345,492,duration=2) #pyautogui.move(0,-45,duration=1) for x in range(1000): # sleep(0.5) pyautogui.click()