Mouse / Keyboard Locking

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
pikake069
Newbie
Posts: 3
Joined: Thu Jan 07, 2010 7:31 pm

Mouse / Keyboard Locking

Post by pikake069 » Thu Jan 07, 2010 7:48 pm

is there a command or a way to lock out the mouse and or keyboard prior to executing command for a found image? This way if the user is using said devices they become frozen out and allows the script to do its thing before it releases control back to the user.

Thanks for any info

User avatar
JRL
Automation Wizard
Posts: 3518
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Jan 07, 2010 9:13 pm

Use BlockInput> function
Help for BlockInput wrote:BlockInput>block

Blockinput prevents or enables keyboard and mouse input from the user.

Set block to 1 to block input from the user.
Set block to 0 to enable input.

Be aware that this prevents all user input apart from CTRL-ALT-DEL. If you need to stop a running script that has blocked input press CTRL-ALT-DEL and then stop the script

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts