1# Import modules
2import win32api, win32con
3
4# Set target position
5tx, ty = 0, 0
6
7# Mouse move event
8win32api.mouse_event(win32con.MOUSEEVENTF_MOVE | win32con.MOUSEEVENTF_ABSOLUTE, int(tx/win32api.GetSystemMetrics(0)*65535), int(ty/win32api.GetSystemMetrics(1)*65535) ,0 ,0)