CODEHotKeySet("{F11}", "_user32_MouseMove")
While 1
Sleep(10)
WEnd
Func _user32_MouseMove($x, $y)
$pos = MouseGetPos()
$xAmount = 50+ $pos[0]
$yAmount = 50+ $pos[1]
DllCall("user32.dll","none","mouse_event","long",1,"long",$xAmount,"long",$yAmount,"long",0,"long", 0)
MsgBox(0, "", "")
EndFunc
added a line to test if the hotkey is detected. on desktop it should move your cursor and then pop up an empty dialogue.
when in game (window mode still), the cursor didnt move but the empty dialogue popped up.
i am confused..anway, thanks crzftx and nfwu