Zedna Posted May 30, 2011 Author Share Posted May 30, 2011 (edited) "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 May 30, 2011 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Ascend4nt Posted May 30, 2011 Share Posted May 30, 2011 (edited) 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 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 May 30, 2011 by Ascend4nt My contributions: Performance Counters in Windows - Measure CPU, Disk, Network etc Performance | Network Interface Info, Statistics, and Traffic | CPU Multi-Processor Usage w/o Performance Counters | Disk and Device Read/Write Statistics | Atom Table Functions | Process, Thread, & DLL Functions UDFs | Process CPU Usage Trackers | PE File Overlay Extraction | A3X Script Extract | File + Process Imports/Exports Information | Windows Desktop Dimmer Shade | Spotlight + Focus GUI - Highlight and Dim for Eyestrain Relief | CrossHairs (FullScreen) | Rubber-Band Boxes using GUI's (_GUIBox) | GUI Fun! | IE Embedded Control Versioning (use IE9+ and HTML5 in a GUI) | Magnifier (Vista+) Functions UDF | _DLLStructDisplay (Debug!) | _EnumChildWindows (controls etc) | _FileFindEx | _ClipGetHTML | _ClipPutHTML + ClipPutHyperlink | _FileGetShortcutEx | _FilePropertiesDialog | I/O Port Functions | File(s) Drag & Drop | _RunWithReducedPrivileges | _ShellExecuteWithReducedPrivileges | _WinAPI_GetSystemInfo | dotNETGetVersions | Drive(s) Power Status | _WinGetDesktopHandle | _StringParseParameters | Screensaver, Sleep, Desktop Lock Disable | Full-Screen Crash Recovery Wrappers/Modifications of others' contributions: _DOSWildcardsToPCRegEx (original code: RobSaunder's) | WinGetAltTabWinList (original: Authenticity) UDF's added support/programming to: _ExplorerWinGetSelectedItems | MIDIEx UDF (original code: eynstyne) (All personal code/wrappers centrally located at Ascend4nt's AutoIT Code) Link to comment Share on other sites More sharing options...
jvanegmond Posted May 30, 2011 Share Posted May 30, 2011 (edited) 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 May 30, 2011 by Manadar github.com/jvanegmond Link to comment Share on other sites More sharing options...
Zedna Posted May 30, 2011 Author Share Posted May 30, 2011 @Ascend4ntThanks for much stuff for playing :-)Isn't this based on options?No. Also source for mouse move/click is the same in 3.2.12.1 as in 3.1.0because my testing scripts with MouseClick can achieve max. 100 clicks/second, so it corresponds to that hardcoded Sleep(10). Resources UDF ResourcesEx UDF AutoIt Forum Search 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