PDA

View Full Version : How to remap a hardware key?


muude
15th September 2007, 12:14 PM
Hi

I need to remap a hardware button to run a program, but I haven't been able to find a reg tweak for it.


I've found these:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\KeyMap s

But from that I can only figure out how to disable or switch the mapping around.

Does anyone know how to do a reg tweak so I can map a hardware button to launch a specific program?

Thanks

DSF
15th September 2007, 06:25 PM
Create a lnk file (shortcut) to your desired application, with one of the following names and put it in \Windows folder.
Short_Home - Home
Long_Home - Home

Short_CAMERA - camera
Long_CAMERA - camera
Long_POC - IE button (the one from above long volume up button)
Short_POC- IE button

Aditionaly:
Short_AP1
Long_AP1
Short_AP2
Long_AP2
Short_AP3
Long_AP3
Short_AP4
Long_AP4

for the phones with the 4 extra buttons above softkeys.

eg:
If we want CoolCamera to open at a long press of Camera button:
- make a shortcut to CoolCamera.exe (with Resco Explorer for example)
- rename the shortcut to Long_CAMERA.lnk
- copy the shortcut to \Windows with overwriting.

Aditionaly you can map Long_VolDown & Long_VolUp.

Edit: more info about HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\KeyMap s:
http://www.gpcarreon.com/?p=541#more-541

muude
15th September 2007, 10:57 PM
Thanks, but that doesn't work on the C500.

I don't have any shortcuts called anything like that in my windows folder. I tried creating one to test it out, and it was a no go :(

Any other ideas?

bittermormon
16th September 2007, 12:26 AM
Not exactly what you are after, but you do know that you can assign programs in your start menu to speed dial right? Sorry if you already knew that. Another option is AEButton or whatever its called, but its pay software.

DSF
23rd September 2007, 01:17 AM
Thanks, but that doesn't work on the C500.

I don't have any shortcuts called anything like that in my windows folder. I tried creating one to test it out, and it was a no go :(

Any other ideas?
What OS do you have? WM5.0?
PS: that works fine on my HTC Tornado with WM5.0 and WM6.0

try this:
the instructions remain, just the shortcuts filename will change as follow:
CaLP & CaSP - camera
HomeLP - home

LP is coming from long press
SP is coming from short press