import pyautogui from time import sleep pyautogui.moveTo(511,722,duration=2) for i in range(500): sleep(0) pyautogui.click()