Jump to content
Sign in to follow this  

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?



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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.