• Advertisement
Sign in to follow this  

Shortcut key-like keyboard input

This topic is 4901 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello everyone, I'm writing a Windows GUI application using the wxWidgets framework. I need to get keyboard input from the user, but not in like you would get it in a game. What I'm trying to achieve would probably be best described with a screenshot for a shortcut in Windows: How do I capture keyboard input this way? I need to be able to capture any meta-keys also (like shift, control or any of the F1-F12 keys, actually ALL keys on the standard keyboard need to be able to be captures.) I can't say exactly what this is for but think of it as an "input configuration" application. Does anyone know how to do this?

Share this post


Link to post
Share on other sites
Advertisement
if this is only to work on mswindows, you could use GetAsyncKey state, it would give you all info you need

Share this post


Link to post
Share on other sites
Keyboard Accelerators do not work for me because my application needs to "read" what keys the user pressed - not do somthing if they are pressed (like a menu shortcut.)

So when a user presses OK on the dialog I need to be able to see what keys were pressed so I can save it into a file.

Share this post


Link to post
Share on other sites
If you're referring to what looks like a control that captures what keys users are pressing, look up the hotkey common control. I know Winamp and VS.NET use them, among a few others.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement