mouse click

Automatic Positional Clicker With Time Intervals

import win32api, win32con, time
def click(x,y):
    win32api.SetCursorPos((x,y))
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTDOWN,x,y,0,0)
    win32api.mouse_event(win32con.MOUSEEVENTF_LEFTUP,x,y,0,0)
def script():
    while True:
        click(1793,889) #invent
        time.sleep(.2)
        click(1393,872)  #1
        time.sleep(.1)
        click(1393,872)  #1
        time.sleep(.1)
        click(1393,872)  #1
        time.sleep(4)
        click(1395,745) #2
        time.sleep(.1)
        click(1395,745) #2
        time.sleep(6)
        click(1501,782) #3
        time.sleep(.1)
        click(1501,782) #3
        time.sleep(7.5)
        click(1483,885) #4
        time.sleep(.1)
        click(1483,885) #4
        time.sleep(5)
        click(1456,845) #5
        time.sleep(7)
        click(1355,859) #6
        time.sleep(2.8)
        click(1273,822) #7
        time.sleep(7)
        click(1451,766) #8
        time.sleep(.1)
        click(1451,766) #8
        time.sleep(5.5)
        click(1498,870) #9
        time.sleep(.1)
        click(1498,870) #9
        time.sleep(4.2)
        click(1792,854)  #10.0
        time.sleep(5.5)
        click(1767,832) #11.0
        time.sleep(5)
        click(1279,999) #11.0
        time.sleep(5)     
#x, y = win32api.GetCursorPos()
#print(x,y)
script()