Question

How can I move the mouse cursor in python 2.7 on Windows 7?

def MoveMouse(x,y):
    #move mouse cursor
Was it helpful?

Solution

what you need is Win32api.


import win32api
def move_to(x,y):
    win32api.SetCursorPos((x,y))

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top