Thanks Universalist, I'll give this a try this morning. What does click(10,10) mean/do.
I know this is not a Python forum but: I named the function to save_click becaus I was getting a problem with a .click I had in another function. So I call the function self.save_click(269,258) and give it two arguments. But I get the error that the click(10,10) is a global name and needs to be defined.
self.save_click(269,258)
def save_click(self,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)
click(10,10)