Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

move the mouse in games python

# Import modules
import win32api, win32con

# Set target position
tx, ty = 0, 0

# Mouse move event
win32api.mouse_event(win32con.MOUSEEVENTF_MOVE | win32con.MOUSEEVENTF_ABSOLUTE, int(tx/win32api.GetSystemMetrics(0)*65535), int(ty/win32api.GetSystemMetrics(1)*65535) ,0 ,0)
 
PREVIOUS NEXT
Tagged: #move #mouse #games #python
ADD COMMENT
Topic
Name
4+4 =