j0sh Posted April 22, 2006 Share Posted April 22, 2006 (edited) How would I disable mouse movement / clicking while the script runs? Thanks in advance. Edit: Lol sorry about bad spelling in the subject, I just woke up! Edited April 22, 2006 by j0sh Link to comment Share on other sites More sharing options...
Xenobiologist Posted April 22, 2006 Share Posted April 22, 2006 How would I disable mouse movement / clicking while the script runs? Thanks in advance. Edit: Lol sorry about bad spelling in the subject, I just woke up!HI,have a look at BlockInput() and _MouseTrap() and maybe also _isPressed()So long,Mega Scripts & functions Organize Includes Let Scite organize the include files Yahtzee The game "Yahtzee" (Kniffel, DiceLion) LoginWrapper Secure scripts by adding a query (authentication) _RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...) Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc. MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times Link to comment Share on other sites More sharing options...
elgabionline Posted April 22, 2006 Share Posted April 22, 2006 How would I disable mouse movement / clicking while the script runs? Thanks in advance. Edit: Lol sorry about bad spelling in the subject, I just woke up! Disable mouse movement and click? Who would wants to make that? (You trying make a Joke, really?) In AutoIt you can disable mouse movements with UDF _mousetrap () #include <Misc.au3> _MouseTrap([$i_left = 0[, $i_top = 0[, $i_right = 0[, $i_bottom = 0]]]]) To inactive buttons left and right, I don't know.... (Who would wants to make that?) lol... Link to comment Share on other sites More sharing options...
j0sh Posted April 22, 2006 Author Share Posted April 22, 2006 Me, lol, so that my scripts dont get interupted by accidental mouse movement. Link to comment Share on other sites More sharing options...
neogia Posted April 22, 2006 Share Posted April 22, 2006 @j0sh: th.meger had it right, BlockInput(1) disables both mouse and keyboard, BlockInput(0) reenables them. Keep in mind that certain versions of windows other than XP SP2 have some problems with this. i.e. you can't send the Alt key in one I know of. Just look at the help file and you'll see the exceptions. [u]My UDFs[/u]Coroutine Multithreading UDF LibraryStringRegExp GuideRandom EncryptorArrayToDisplayString"The Brain, expecting disaster, fails to find the obvious solution." -- neogia 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