Sign in to follow this  
Followers 0
Paradox

Deny input from keyboard or mouse

3 posts in this topic

Hey guys, Here's one for ya...

My program is done, however, my higher ups are curious to know if I can come up with a section of code to be able to deny input from the keyboard or mouse... I know that this can be risky, considering that if something goes wrong with the script after you lock them out, you're basically screwed and would have to reboot. So here's the modified request:

Is there a way to lock out keyboard and mouse functions, but still have a failsafe key-combination (or a hotkey) to restore functions if something go wrong during the script???

Share this post


Link to post
Share on other sites



Hey guys, Here's one for ya...

My program is done, however, my higher ups are curious to know if I can come up with a section of code to be able to deny input from the keyboard or mouse... I know that this can be risky, considering that if something goes wrong with the script after you lock them out, you're basically screwed and would have to reboot. So here's the modified request:

Is there a way to lock out keyboard and mouse functions, but still have a failsafe key-combination (or a hotkey) to restore functions if something go wrong during the script???

:P HAHAHAHA!!! I'm such a goober! BlockInput() durr.... ;) hehehe

Share this post


Link to post
Share on other sites

BlockInput traps both, without an override possibility (except ctrl-alt-del). _MouseTrap is a nifty tool I've been using lately...most people I am around don't know too many keyboard shortcuts ;)


Writing AutoIt scripts since
_DateAdd("d", -2, _NowCalcDate())

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  
Followers 0