Jump to content

MouseClickFast & MouseMoveFast


Zedna
 Share

Recommended Posts

"Util_Sleep(10); // Hopefully fixes "clicks before moving" bug"

I assume that if the current version of AutoIt still has the sleep then the bug must still exist?

I had no problems in real application even without this Sleep(10) fix.

So I expect this was fix only for some strange conditions which are not true in many/common cases.

For those who need fast clicking and don't have problems there is my FAST version here :-)

Edited by Zedna
Link to comment
Share on other sites

Zedna, just a couple of things:

mouse_event's last parameter is "ulong_ptr", not "int". There's a difference of 32-bits on 64-bit O/S's :huh2:

Also, if you want superfast mouse-moves, use this instead:

DllCall("user32.dll","bool","SetCursorPos","int",$x,"int",$y)

That takes 1/3 of the time MouseMove() does on my system. Oh - make sure the $x and $y passed to that call are in regular coordinates.

*edit: oh, one more thing - you don't need $x and $y for mouse down/up events, so there won't be a need for those calculations if you use SetCursorPos.

Edited by Ascend4nt
Link to comment
Share on other sites

Isn't this based on options?

MouseClickDelay Alters the length of the brief pause in between mouse clicks.
Time in milliseconds to pause (default=10). 

MouseClickDownDelay Alters the length a click is held down before release.
Time in milliseconds to pause (default=10).

Keep in mind that 3.1 is ancient history and any source code in there can not be expected to still be in the current code.

Edited by Manadar
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...