Sign in to follow this  
Followers 0
joncom

How to MouseMove many times VERY QUICKLY

4 posts in this topic

#1 ·  Posted (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 by joncom

Share this post


Link to post
Share on other sites



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).

Share this post


Link to post
Share on other sites

Interesting! Thank you.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0