Jump to content

Block Alt key except for hot keys


Recommended Posts

I have written a program which sets a lot hotkeys. It worked perfectly 99% of the time in WinXP, but in Vista and Win7 hotkeys which involve the alt key now allow the alt key to be passed through to the active window. This causes me to end up in the active window's menu.

I would like to block the alt, while allowing my hotkeys to work. Specifically, I would like it to be blocked only while the Windows / flag key is being pressed. I have tried using both HotKeySet and isPressed with the program given here: #620880 This seemed to be able to block the alt key but it also blocked my hotkeys.

Does anyone know how to do this or some other way to prevent the alt key from being passed through?

Thanks,

BTH

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