Jump to content
Sign in to follow this  
j0sh

Diasable Mouse Movement And Clicking?

Recommended Posts

j0sh

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 by j0sh

Share this post


Link to post
Share on other sites
Xenobiologist

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

Share this post


Link to post
Share on other sites
elgabionline

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

Share this post


Link to post
Share on other sites
j0sh

Me, lol, so that my scripts dont get interupted by accidental mouse movement.

Share this post


Link to post
Share on other sites
neogia

@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

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.