I'm using python 2.7 in windows and I need to be able to code a right click at a certain xy coordinate. I already have the left click capability using this:
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)
Any similar/completely different way to code a right click xy dependant function?