crzftx Posted January 4, 2008 Posted January 4, 2008 HotKeySet("{F11}", "_user32_MouseMove") While 1 Sleep(10) WEnd Func _user32_MouseMove() $xAmount = 50 $yAmount = 50 DllCall("user32.dll","none","mouse_event","long",1,"long",$xAmount,"long",$yAmount,"long",0,"long", 0) MsgBox(0, "", "") EndFunc it moves a relative amount, so try this instead.
CoBJType Posted January 5, 2008 Author Posted January 5, 2008 HotKeySet("{F11}", "_user32_MouseMove") While 1 Sleep(10) WEnd Func _user32_MouseMove() $xAmount = 50 $yAmount = 50 DllCall("user32.dll","none","mouse_event","long",1,"long",$xAmount,"long",$yAmount,"long",0,"long", 0) MsgBox(0, "", "") EndFunc it moves a relative amount, so try this instead. no luck it works if the window is not active though thanks for help anyway
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now