Register Hot Keys application wide not global

  • Thread starter Thread starter Maloney
  • Start date Start date
Is there any way to get when the Hardware keys at the bottom of an iPaq are
pressed in a application wide settings not global. Using RegisterHotKey
(http://www.opennetcf.org/Forums/topic.asp?TOPIC_ID=283&SearchTerms=hotkey)
will give me global notification of the keys pressed but i just want to get
them when my app is in focus. Is there any way of doing this.

i think the only way is:
- store the original values of the buttons
- assign your own function when your App is in focus
- restore the original values when your App loses the focus

just an idea

Boris
 
Do you know how to get the previous values from the buttons?

not really
i've just read about it from someone, who has done this (with eVC++)

Boris
 
RegisterHotKey() will not take over a hot key already registered by someone
else. If the key generates a standard keystroke (F1 or left-arrow or
whatever), you can use a windows hook, a C/C++ DLL, and a MessageWindow
subclass to capture it only while you are the active application. I don't
think that RegisterHotKey() is going to be a part of the solution, though.

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top