Hardware buttons using Settings\Personal\Buttons

  • Thread starter Thread starter Dominic
  • Start date Start date
D

Dominic

How can I set my program to start each time a hardware button is pressed,
before my program is started.

I know the user can change it by Setting\Personal\Buttons, I would like to
offer it as an option when configuring my program.

VS 2005, VB.net CF2SP1

Thanks

Dom
 
That's probably done with registry entries. See if you can figure out what
registry entries the Buttons applet sets (export the registry using Remote
Registry Editor with the buttons set one way, then change the buttons and
export again; compare results).

Paul T.
 
Hi

Try looking at the HardwareButton class to see if that is what you want
it to do... not sure if your app needs to be running for it to work.

We used to change the buttons a few ways, we used to change the
registry to set the buttons to different apps, and also use the
RegisterHotKey api call.

HKLM\Software\Microsoft\Shell\Keys... there is a key for each hardware
button. I think we used to change the values. Check this article out
about it...

http://www.pocketpcdn.com/articles/handle_hardware_keys2.html

The registerhotkey api was used with VK_APPx where x is a number for
the button you want to listen for.

Cheers

Matt
 
Back
Top