Sign in to follow this  
Followers 0
Zoli1972

How to disable all hotkeys for a given (external) app

1 post in this topic

Hi,

I want to disable all hotkeys an external program may react to. I tried Hotkeyset() and it worked, but that's not exactly the function I am looking for, because it can remove only one hotkey at a time. What I would need is a function, that automatically disables all hotkeys (for the window) of an external application or at least gives me the opportunity to do so with some loop around it.

My ideas so far are to...

- read the windows message buffer and simply discard keystrokes from there

- call some user32.dll function to block keystrokes - preferably only those of my external application, of course

- read the list of defined hotkeys (should be somewhere in memory, I guess) and loop through it to do disable each hotkey set one by one.

- ... (your ideas)?

regards

Zoli19721

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