I need the mouse go the below given axis infinitely, until i break the program.
import pyautogui, time
for i in range(0):
pyautogui.moveTo(716, 234, duration = 2)
pyautogui.moveTo(234, 600, duration = 2)
time.sleep(2)
Your for loop conditions are never met so your command to pyautogui are never called. If you need an infinite loop use 'while True:'