Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Jonous
Old
(Last edited by Jonous; 21st April 2010 at 06:39 PM.)
#1  
Senior Member - OP
Thanks Meter 17
Posts: 376
Join Date: Jan 2008
Default Remapping hardware keys

I was looking a way to remap the camera key to Toshiba settings through registry without having other progs like AEbutton Plus (which is not free btw) or other software running on the back. Found an article here, this method probably applies to all keys.

Made a shortcut of \Windows\settings.exe (shows only in totalcommander cause it's hidden) and put it in \Windows\AppButtons\settings.lnk (the folder probably doesn't mean anything).

In HKLM\Software\Microsoft\Shell\Keys you'll find 6 folders 40C1-6. Those correspond to the hardware buttons.

Camera key is the 40C3 folder. I didn't care to find which folder is vol up/down etc. but don't think many people will want to change the volume keys. The article explains some of the folder's contents:

1 HKLM\Software\Microsoft\Shell\Keys\40C3", (Default)
set it to point to the location of the program you want to start.
(e.g. \Windows\AppButoons\settings.lnk for my purpose)

2 HKLM\Software\Microsoft\Shell\Keys\40C3", "Flags"
set this to 0

3 HKLM\Software\Microsoft\Shell\Keys\40C3", "Name"
the name of this button, this is what you will see in Settings\Buttons

4 HKLM\Software\Microsoft\Shell\Keys\40C3", "Icon"
set it to point the location of your program again, or any other resource containing an icon (dll, exe file) so you will have a nice icon in the Settings\Buttons window.

That's it you're done. The program you've mapped opens with long press of the camera button. I don't know if and how you can change the short press action, If someone knows or finds out please let us know.

--------------------------

Hmm after posting I found out that when the phone is restarted the string "Flags" resets back to value 4 and the button doesn't launch the mapped app. Any thoughts?
 
hmihaii
Old
#2  
Junior Member
Thanks Meter 11
Posts: 10
Join Date: Feb 2011
a solution for this: http://forum.xda-developers.com/show...4#post13028244

enjoy
The Following User Says Thank You to hmihaii For This Useful Post: [ Click to Expand ]
 
sumenpo
Old
#3  
Junior Member
Thanks Meter 0
Posts: 6
Join Date: Mar 2011
Location: Taipei
Thumbs up work well,thanks

work well,thanks
 
(InsertNameHere)
Old
#4  
(InsertNameHere)'s Avatar
Senior Member
Thanks Meter 247
Posts: 839
Join Date: Jan 2010
Quote:
Originally Posted by Jonous View Post
I was looking a way to remap the camera key to Toshiba settings through registry without having other progs like AEbutton Plus (which is not free btw) or other software running on the back. Found an article here, this method probably applies to all keys.

Made a shortcut of \Windows\settings.exe (shows only in totalcommander cause it's hidden) and put it in \Windows\AppButtons\settings.lnk (the folder probably doesn't mean anything).

In HKLM\Software\Microsoft\Shell\Keys you'll find 6 folders 40C1-6. Those correspond to the hardware buttons.

Camera key is the 40C3 folder. I didn't care to find which folder is vol up/down etc. but don't think many people will want to change the volume keys. The article explains some of the folder's contents:

1 HKLM\Software\Microsoft\Shell\Keys\40C3", (Default)
set it to point to the location of the program you want to start.
(e.g. \Windows\AppButoons\settings.lnk for my purpose)

2 HKLM\Software\Microsoft\Shell\Keys\40C3", "Flags"
set this to 0

3 HKLM\Software\Microsoft\Shell\Keys\40C3", "Name"
the name of this button, this is what you will see in Settings\Buttons

4 HKLM\Software\Microsoft\Shell\Keys\40C3", "Icon"
set it to point the location of your program again, or any other resource containing an icon (dll, exe file) so you will have a nice icon in the Settings\Buttons window.

That's it you're done. The program you've mapped opens with long press of the camera button. I don't know if and how you can change the short press action, If someone knows or finds out please let us know.

--------------------------

Hmm after posting I found out that when the phone is restarted the string "Flags" resets back to value 4 and the button doesn't launch the mapped app. Any thoughts?
AE Button Plus can do this and is free now, i cannot get camera button to work on it in mirom8 but it definately can remap the soft buttons of the tg01
The Following User Says Thank You to (InsertNameHere) For This Useful Post: [ Click to Expand ]
 
hmihaii
Old
#5  
Junior Member
Thanks Meter 11
Posts: 10
Join Date: Feb 2011
soft buttons, aebuttons should do it
hard buttons, only registry hacking, which this thread explains
for how to make the registry setting persistent, i gave a solution in a separate thread (check my post above for the link)
The Following 2 Users Say Thank You to hmihaii For This Useful Post: [ Click to Expand ]
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Go to top of page...