NerdFencer Posted February 1, 2009 Share Posted February 1, 2009 Here is a Mouse UDF Lib that I made (mainly out of dislike for _MouseTrap)This is primarily an interface between the windows DLL functions for the mouse and AutoIt, so don't shoot me for unoriginality...Functions:_MouseButtonSwap_MouseShowCursor_MouseGetPos_MouseSetPos_MouseGetDoubleClickTime_MouseSetDoubleClickTime_MouseGetCapture_MouseReleaseCapture_MouseSetCapture_MouseGetButton_MouseSetTrap_MouseReleaseTrap_MouseGetTrapNotes:> _MouseSetTrap behaves differently than the _MouseTrap Function built into Misc.au3. Given blank strings in parameters, it will set those values to the extreme edges of the screen, not to its opposing value +1. You also need to call _MouseReleaseTrap to release the trap, these really should have been separate in the Misc UDF as they are different actions requiring different calls.> In reguards to _MouseSetPos, yes this can be done with the MouseMove function, but I figured it couldn't hurt to throw it in.> _MouseGetPos is more useful than MouseGetPos in some cases because it returns an array with both, not just x or y. (EX: Storing mouse position for replay later)Hopefully this will prove useful.Mouse.au3 _________[u]UDFs[/u]_________-Mouse UDF-Math UDF-Misc Constants-Uninstaller Shell Link to comment Share on other sites More sharing options...
FireFox Posted February 1, 2009 Share Posted February 1, 2009 (edited) @NerdFencer @WindowsDir&"\system32\user32.dll" ;your code 'user32.dll' ;works too without path Cheers, FireFox. Edited February 1, 2009 by FireFox Link to comment Share on other sites More sharing options...
NerdFencer Posted February 1, 2009 Author Share Posted February 1, 2009 Thanks _________[u]UDFs[/u]_________-Mouse UDF-Math UDF-Misc Constants-Uninstaller Shell Link to comment Share on other sites More sharing options...
doucment Posted December 1, 2009 Share Posted December 1, 2009 Good 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