import pyautogui as pg
import time as tm
with open("pos.txt") as file:
for line in file:
posX, posY = line.strip().split(":")
tm.sleep(1)
pg.moveTo()
import pyautogui as pg
import time as tm
with open("pos.txt") as file:
for line in file:
posX, posY = line.strip().split(":")
posX, posY = int(posX), int(posY)
pg.moveTo(posX, posY, duration=1)
tm.sleep(1)
pg.click()