Jump to content

How to intercept a keypress (not a hotkey) of a window?


Recommended Posts

I want to press a key like 'b' or spacebar on a window (another program, not mine) and be informed when this occurs so I can respond to it.

I do not want to consume the keypress, just know that it happened.

I'm not really interested in modifiers just letters and the spacebar.

Link to post
Share on other sites

You would need to use a global callback to catch all key press.  See _WinAPI_SetWindowsHookEx example in help file to see how it can be implemented.

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...