I am trying to hold down right mouse button and move to a (x,y) but not instantly teleporting the mouse cursor and the object being dragged over to another location, could someone show me how to construct this?
thx!
Code: Select all
import win32api
import ctypes
import time
leftdown = 0x0002
leftup = 0x0004
rightdown = 0x0008
rightup = 0x0010
ctypes.windll.user32.mouse_event(rightdown, 0, 0, 0, 0)
ctypes.windll.user32.mouse_event(1, 100, 0, 0, 0)
ctypes.windll.user32.mouse_event(rightup, 0, 0, 0, 0)