import pyautogui import time i = 0 while i < 300: pyautogui.moveTo(28,295,duration=0.5) pyautogui.click(30,295,duration=0.5) pyautogui.moveTo(650,220,duration=1) pyautogui.click(650,220,duration=1) pyautogui.moveTo(650,670,duration=0.3) pyautogui.click(650,670,duration=1) i += 1