joncom Posted April 21, 2013 Share Posted April 21, 2013 (edited) It seems that MouseMove has a delay between each MouseMove call. I'm aware of the speed parameter, which has been set to 0, so movement is instant. However even if I call MouseMove repeatedly within a While-loop, there seems to be a significant delay between each call. How can I reduce this delay? ; An example: For $x = 0 To 100 For $y = 0 To 100 MouseMove($x, $y, 0) Next Next I'd like for the above code to scan over the 100x100 pixel area in a matter of a couple seconds. Currently it takes many many many minutes. Edited April 21, 2013 by joncom Link to comment Share on other sites More sharing options...
joncom Posted April 21, 2013 Author Share Posted April 21, 2013 Figured it out. For anybody else interested, this does the trick! AutoItSetOption ( "WinWaitDelay", 10 ) WinWaitDelay Alters how long a script should briefly pause after a successful window-related operation. Time in milliseconds to pause (default=250). Link to comment Share on other sites More sharing options...
AZJIO Posted April 21, 2013 Share Posted April 21, 2013 My other projects or all Link to comment Share on other sites More sharing options...
joncom Posted April 21, 2013 Author Share Posted April 21, 2013 Interesting! Thank you. Link to comment Share on other sites More sharing options...
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