View Single Post
Old 04-27-05, 06:47 AM   #1 (permalink)
Theophilus
Aximsite All Star
 
Theophilus's Avatar
Elite Member
 
Join Date: Dec 2004
Location: London
Posts: 838
Thanked 0 Times in 0 Posts
REGISTRY HACK: Map ANY app to hardware buttons

Hello,

I wandered a bit into the registry settings, and found this one, which can be very interesting. It allows to map the hardware buttons to any application or other shortcut on youtr PPC, without the need for any 3rd-party app. :approve:

You need a registry editor to do that (I use Resco File Explorer and its built-in registry editor). Don't forget to BACKUP FIRST as any bad manipulation on your registry keys can lead to a hard reset.

The button settings keys are located here:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Keys\


And the keys are:
  • 40C1: Calendar
  • 40C2: Contacts
  • 40C3: Messaging
  • 40C4: Home
  • 40C5: Record
  • 40C6: WiFi

Each key has the following values that you can modify :
  • (Default): The path to the shortcut. See below.
  • Flags: For operations without shortcut, when the (Default) is empty. For example, a Flags=0xC means Rotate Screen
  • ResetCmd: The default command (when entering Button settings applet). To be persistent, your change must also be made here.
How To
Personaly, I use the \Windows\AppButtons\ folder to store my shortcuts to be mapped with hardware buttons, it's very convenient. So:
  • First, create a shortcut to the application you want to map in \WIndows\AppButtons\
  • Then update the registry key of the button you want to map (see above). In (Default) and ResetCmd, put the path to your shortcut between quotes: "\Windows\AppButtons\My Shortcut.lnk"
Et voila !!
:approve: :approve: :approve:
__________________
.
"There never was a good war or a bad peace." -- Benjamin Franklin
"Life is pleasant. Death is peaceful. It's the transition that's troublesome." -- Isaac Asimov
"Newbie or not newbie, there is a question." -- Shakespeare, Hamlet 3/1 (Kind of)
Theophilus is offline   Reply With Quote