Jump to content
Sign in to follow this  
erezlevi

blocking use of keyboard and mouse during script

Recommended Posts

erezlevi

hi,

Is there a way to block the user from tuching the keyboard or mouse for a giving time (3000msec) while the script is doing something on the desktop?

thanks,

Share this post


Link to post
Share on other sites
searchresult

to block mouse you can use use

#Include <Misc.au3>

_MouseTrap([$iLeft = 0[, $iTop = 0[, $iRight = 0[, $iBottom = 0]]]])

It will put mouse cursor in a position you entered and to release mouse just use it like this _MouseTrap ()

you have it in a help file

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  

×