Meli90 Posted March 22, 2010 Posted March 22, 2010 (edited) I write following script: #include<Constants.au3> #Include<WinAPI.au3> While 1 HotKeySet("{PAUSE}", "MOUSE") WEnd Func MOUSE() _WinAPI_Mouse_Event($MOUSEEVENTF_MOVE, 100, 0, 0, 0) EndFunc This script should moves mouse cursor 100 pixels to right but it doesn't work. Cursor moves 155 pixels to right. 55 pixels too much. :/ I don't know why? I use Windows 7 64bit. Help me, please. Edited March 22, 2010 by Meli90
JohnOne Posted March 22, 2010 Posted March 22, 2010 Try#include<Constants.au3> #Include<WinAPI.au3> While 1 HotKeySet("{PAUSE}", "MOUSE") WEnd Func MOUSE() _WinAPI_Mouse_Event(BitAND($MOUSEEVENTF_ABSOLUTE, $MOUSEEVENTF_MOVE), 100, 0, 0, 0) EndFuncOr try a BitORI must mention though, I never had much luck with these functions when I tried them. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
Meli90 Posted March 22, 2010 Author Posted March 22, 2010 It still doesn't work. BitAND case: cursor doesn't move. BitOR case: cursor moves to left-up corner desktop, not 100 pixels to right side.
JohnOne Posted March 22, 2010 Posted March 22, 2010 Bummer. Is there any reason you cannot use MouseMove() ? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans.
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