Jump to content

BlockInput except ESC


Recommended Posts

I have an autologin for the guys/gals up at work to not have to login to a program we use every day. They'd like the the autoIt to block Input so they don't mess with the mouse and keyboard. The blockInput is easy, but allowing just one key to can it is not something I know how to do. The cancel key is not what they requested, but I think it would be a nice addition.

I'd like to block all keys except for ESC. I searched the forums and some people were scolded for sounding like they were asking for keyloggers, viruses, etc. I think creating such is stupid. Nonetheless, if you'd like to keep such information of the forums because it could be used for such purposes, then please don't post and I'll totally understand and appreciate it. <-- that was a horrible sentence :whistle:

BTW, the ESC key is for doing the fallowing.

HotKeySet("{ESC}", "Terminate")
Func Terminate()
    Exit
EndFunc
Edited by JohnBailey
A decision is a powerful thing
Link to comment
Share on other sites

Mods, You can erase this for me being an idiot, I just noticed that the manual says BlockInput is disabled by CTRL+ALT+DEL, which then I can just press ESC.

You can remove my ignorance from the forums :whistle:

A decision is a powerful thing
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...