Notices

Windows Mobile 2003 Questions and Answers regarding Windows Mobile 2003.

Reply
 
LinkBack Thread Tools
Old 04-27-05, 06:47 AM   #1 (permalink)
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
Sponsor Ads
Old 04-27-05, 07:14 AM   #2 (permalink)
Aximsite All Star
 
CRXGSR's Avatar
Elite Member
 
Join Date: Mar 2005
Location: Toronto, Canada!
Posts: 913
Thanked 0 Times in 0 Posts
Nice tutorial! :approve: But I usually just create a shortcut to the particular application into the \\windows\start menu\programs folder, and just use the included button mapping program.

What's the advantages/disadvantages to your method?
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
CRXGSR is offline   Reply With Quote
Old 04-27-05, 08:20 AM   #3 (permalink)
Aximsite All Star
 
Theophilus's Avatar
Elite Member
 
Join Date: Dec 2004
Location: London
Posts: 838
Thanked 0 Times in 0 Posts
Originally Posted by CRXGSR
Nice tutorial! :approve: But I usually just create a shortcut to the particular application into the \\windows\start menu\programs folder, and just use the included button mapping program.

What's the advantages/disadvantages to your method?
The problem is that you can map only the shortcuts directly in your Program folder. I use WisBar Advance, and I have a lot of sub-folders in my Start menu for all my apps. SO they don't appear on the Button mapping settings applet.
__________________
.
"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
Old 04-27-05, 01:41 PM   #4 (permalink)
Aximsite Minor League
 
Join Date: Nov 2004
Posts: 271
Thanked 0 Times in 0 Posts
I have EVERYTHING in \windows\start menu\programs filed into subdirectories and I can use button assignments for them.
ironchef is offline   Reply With Quote
Old 04-27-05, 03:50 PM   #5 (permalink)
Driftless
Guest
 
Posts: n/a
I was going to say...my games and PI show up and they're in folders...

either way...NICE tutorial!
  Reply With Quote
Old 04-27-05, 05:17 PM   #6 (permalink)
Aximsite All Star
 
Theophilus's Avatar
Elite Member
 
Join Date: Dec 2004
Location: London
Posts: 838
Thanked 0 Times in 0 Posts
They don't show up on mine
I just upgraded to A03 though... Anyway
__________________
.
"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
Reply

Tags
app, buttons, hack, hardware, map, registry

Sponsor Ads

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 10:33 AM.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Copyright © 2003-09 LeckMedia, LLC