PDA

View Full Version : How-to: Program other function to the useless backlight key


SiliconS
2nd December 2005, 01:46 PM
From this thread:
http://forum.xda-developers.com/viewtopic.php?p=189058#189058


it is mappable
add the following key to the registry:
HKLM\SOFTWARE\Microsoft\Shell\Keys\40C8
and create values just like another key (i.e. 40C5)
soft-reset and then you are able to program the button.

Can anyone expand to his instructions please. Did anyone tried to remap their backlight button yet?
I just tried and it works. Copy the complete key for 40C5 and call it 40C8. Choose a different name for the button (e.g. 'Button Light').

I guess we could rename all buttons the same way so we could actually have a clue which buttons they were when we were programming them.

Thanks for the tip, MvanIperen :)

SiliconS
2nd December 2005, 01:50 PM
Makes me wonder which other key actions we could capture with this registry key. Would all these buttons respond to a press-and-hold? Anybody know how to achieve that?

The key HKLM\SOFTWARE\Microsoft\Shell\Keys\40C4 refers to the press-and-hold action of the notes button, but I can't tell what in the key makes this different behaviour from the press-once action for the same button (key 40C5). Maybe it's just the name of the key. 40C4 is always press-and-hold for that button and 40C5 is press-once. Maybe it's in the hardware this way.

Or does someone know differently? How did MvanIperen know that 40C8 refers to the backlight button? What's at 40C6 and 40C7? 40C9?

Answers below please :)

universaldoc
2nd December 2005, 03:00 PM
Thats an absolutely fantastic find. I wonder if we can actually map individual keys to different functions. Now that would be simply superb!!!

universaldoc
2nd December 2005, 03:17 PM
40C1-Contacts
40C2-Video Telephony
40C3-Camera
40C4-Voice Recorder
40C5-Speed Dial
40C6-???
40C7-???
40C8-Backlight (now added)
40C9-???
.
.
.
.


Any suggestions guys?

universaldoc
2nd December 2005, 03:27 PM
I have pm'd MvanIperen. Hopefully, he will join us soon. Look forward to his input in this...

UD.

MvanIperen
2nd December 2005, 04:10 PM
Sorry guys,

I've been trying to map various buttons, and keys but with no result so far.

Will let you know when I find out something new.

sub69
2nd December 2005, 05:05 PM
Brilliant!

I've mapped the backlight to WA2's new "Toggle Screen" program, and now my backlight button does what I've always thought it should have done in the first place.

Many thanks!

universaldoc
2nd December 2005, 05:09 PM
Hey,

Thanks for trying Ivan. We look forward to any input from you. Just one question though, how did you manage to figure this bit out?

Cheers.

thaihugo
2nd December 2005, 05:24 PM
Hey,

Thanks for trying Ivan. We look forward to any input from you. Just one question though, how did you manage to figure this bit out?

Cheers.

I found this by luck, using pocket artist. The backlight key was mappable to an action, and it gave the code C8. The rest was just deducting from registry. Sorry not to have posted this in a proper thread, I was busy at work.

Guess I should have had to get the bell and whistle :wink:
http://forum.xda-developers.com/viewtopic.php?t=33466&postdays=0&postorder=asc&start=0#185747

cktlcmd
3rd December 2005, 02:27 AM
Can you guys please give me a step by step instruction. I have no idea as to what you guys are taking about. PLEASE.

dreamtheater39
3rd December 2005, 07:39 AM
Can you guys please give me a step by step instruction. I have no idea as to what you guys are taking about. PLEASE.



1. install PHM Regedit (or any other registry editor)
2. go down to this location HKLM\SOFTWARE\Microsoft\Shell\Keys
3. create a key "40C8"
4. Go to the key HKLM\Software\Microsoft\Shell\Keys\40C5
5. Select all values under that key and copy it
6. Paste it under the new key "40C8" you just created in step 3
7. rename it to suit a readable name like "Backlight"
8. Softreset using some app like psShutXP or pocket plus (and NOT using the hole)
8. now, you can configure this button as u do normally (for the rest of the buttons)

S

SiliconS
3rd December 2005, 10:05 AM
8. Softreset using some app like psShutXP or pocket plus (and NOT using the hole)
I reset using the hole with no problem at all. :p

cktlcmd
3rd December 2005, 09:00 PM
1. install PHM Regedit (or any other registry editor)
2. go down to this location HKLM\SOFTWARE\Microsoft\Shell\Keys
3. create a key "40C8"
4. Go to the key HKLM\Software\Microsoft\Shell\Keys\40C5
5. Select all values under that key and copy it
6. Paste it under the new key "40C8" you just created in step 3
7. rename it to suit a readable name like "Backlight"
8. Softreset using some app like psShutXP or pocket plus (and NOT using the hole)
8. now, you can configure this button as u do normally (for the rest of the buttons)

S

THANKS VERY MUCH TO YOU AND EVERYONE WHO POSTED. I GOT IT WORKING. YAHOOOOOOO! :D

cktlcmd
3rd December 2005, 09:29 PM
Basically, I now get the idea of how to assign these. Thus, we can also assign "press and hold" functions to button 1, 2, and 3, by simply copying the files off 40C4 and renaming "button 4" to either 1, 2, or 3, depending which button we want the "press and hold" function.

Now if only we can reassign "press and hold" functions to any key. That would be something really to celebrate.

Azhad
5th December 2005, 10:57 AM
40C1-Contacts
40C2-Video Telephony
40C3-Camera
40C4-Voice Recorder
40C5-Speed Dial
40C6-???
40C7-???
40C8-Backlight (now added)
40C9-???

Any suggestions guys?


40C6- Volume up
40C7- Volume down

Mythozz
5th December 2005, 03:22 PM
Thank you all guys, I remmaped the Light Button to be the OK/Close button of programs and works great!

I'll try now the sliders (uo/down) volume. :)

universaldoc
5th December 2005, 04:53 PM
@Azhad,

Thanks!!!

40C1-Contacts
40C2-Video Telephony
40C3-Camera
40C4-Voice Recorder
40C5-Speed Dial
40C6-Volume Up
40C7-Volume Down
40C8-Backlight (now added)
40C9-???
.
.
.
.

DaveUK
6th December 2005, 10:39 AM
40C9 - Calendar

SiliconS
6th December 2005, 10:56 AM
40C9 - Calendar
Which is the calendar button?

DaveUK
6th December 2005, 03:35 PM
Left side next 2 green phone key. Also programs the screen calendar button to the bottom left of screen.

SiliconS
6th December 2005, 03:59 PM
Left side next 2 green phone key. Also programs the screen calendar button to the bottom left of screen.
Ahh. You mean the soft key, whose purpose changes depending on the application on the screen? Between the green button and the hard Contacts button.

That would be a useful one to program for some people. Does 40C9 control it then?

Wonder what's at 40CA, 40CB .... etc. Where will it ever end? :)

vertur
1st April 2006, 07:48 PM
Hi, all!
I disassembled keybddr.dll and found key assosiations:

40C1 = contacts (programmable, VK_LWIN + VK_APP1)
40C2 = video telephone (programmable, VK_LWIN + VK_APP2)
40C3 = camera (programmable, VK_LWIN + VK_APP3)
40C4 = record [press & hold] (programmable, VK_LWIN + VK_APP4)
40C5 = voice speed dial (programmable, VK_LWIN + VK_APP5)

Mail, Browser, Fn+Right, TTalk, tEnd, Soft1, Soft2, VolumeUp, VolumeDown, Ok, and so on - are HARD CODED buttons (it's functionality coded in to driver body)

VolumeUp = VK_RWIN + VK_TVOLUMEUP (VK_TVOLUMEUP = VK_F6)
VolumeDown = VK_RWIN + VK_TVOLUMEDOWN (VK_TVOLUMEUP = VK_F7)

OK = VK_RWIN + VK_DONE (VK_DONE = VK_F6)

But i can't found any entry's of Backlight button.

Now, i developing keyboard driver for Qtek9000(95 % compleate), as MacCentre Pocket RussKey 2003 module.
At this driver i will use follow programmable associations:
40C1 = contacts (programmable, VK_LWIN + VK_APP1)
40C2 = video telephone (programmable, VK_LWIN + VK_APP2)
40C3 = camera (programmable, VK_LWIN + VK_APP3)
40C4 = record [press & hold] (programmable, VK_LWIN + VK_APP4)
40C5 = voice speed dial (programmable, VK_LWIN + VK_APP5)
40C6 = mail (programmable, VK_LWIN + VK_APP6)
40C7 = browser (programmable, VK_LWIN + VK_APP7)
40C8 = backlight (programmable, VK_LWIN + VK_APP8)
40C9 = wireless (aka Fn+Right) (programmable, VK_LWIN + VK_APP9)
40CA = may be backlight [press & hold] (programmable, VK_LWIN + VK_APPA), <- but i not decide it :lol:.

gpfransen
23rd April 2006, 07:36 PM
Does anybody have a reg file from "HKLM\SOFTWARE\Microsoft\Shell\Keys " please? (yes this stupid deleted it :roll: )

Mr.Clark
23rd April 2006, 07:51 PM
Mail, Browser... and so on - are HARD CODED buttons (it's functionality coded in to driver body)Well that sucks. I'd have thought they'd be buttons many people want to reprogram... especially browser :(

BUMP THAT
25th April 2006, 04:24 AM
I really wanted to map mail and browser buttons. :(

mikeycrawford
26th April 2006, 06:06 PM
It would appear that these keys don't realte to the volume slider after all. I have creatted them in the registry and assigned them command in Buttons, but it still only affects the volume control :(

cktlcmd
26th April 2006, 07:41 PM
Now, i developing keyboard driver for Qtek9000(95 % compleate), as MacCentre Pocket RussKey 2003 module.
At this driver i will use follow programmable associations:
40C1 = contacts (programmable, VK_LWIN + VK_APP1)
40C2 = video telephone (programmable, VK_LWIN + VK_APP2)
40C3 = camera (programmable, VK_LWIN + VK_APP3)
40C4 = record [press & hold] (programmable, VK_LWIN + VK_APP4)
40C5 = voice speed dial (programmable, VK_LWIN + VK_APP5)
40C6 = mail (programmable, VK_LWIN + VK_APP6)
40C7 = browser (programmable, VK_LWIN + VK_APP7)
40C8 = backlight (programmable, VK_LWIN + VK_APP8)
40C9 = wireless (aka Fn+Right) (programmable, VK_LWIN + VK_APP9)
40CA = may be backlight [press & hold] (programmable, VK_LWIN + VK_APPA), <- but i not decide it :lol:.

If you got it to work, do let us know.

Riceburner
26th April 2006, 11:05 PM
Anyone know the code for the "Start Menu" button?? (the one with the windows "flag" on it)

wkeller
1st May 2006, 02:40 PM
with PQZ you can redefine nearly any keys (without reg hack).

pmdci
20th May 2006, 12:08 PM
I don't know if everyone here have the same problem, but i find quite annoying that the button of the wired headset works only to answer an incoming call and put the call on hold (it doesn't end a call - it put the call on hold).

Is it possible to remap this key as well? I find this headset way more confortable than a BT one (and I don't need to charge one more gadget), but I would like to use its button for the voice commander.

Any ideas?

Cheers,
P.

tattootroy
2nd November 2006, 05:30 AM
i just mess my button up trying to assign press and hole for the 3 buttons ..can some one upload the original keys plz

craigiecraigie4
2nd November 2006, 06:29 AM
PQzII (search this forum) maps all of the buttons except mail and browser. Even volume buttons. Most importantly it adds CTRL and ALT keys to keyboard.

kdskamal
15th March 2007, 05:17 PM
Hi, all!
Now, i developing keyboard driver for Qtek9000(95 % compleate), as MacCentre Pocket RussKey 2003 module.
At this driver i will use follow programmable associations:
40C1 = contacts (programmable, VK_LWIN + VK_APP1)
40C2 = video telephone (programmable, VK_LWIN + VK_APP2)
40C3 = camera (programmable, VK_LWIN + VK_APP3)
40C4 = record [press & hold] (programmable, VK_LWIN + VK_APP4)
40C5 = voice speed dial (programmable, VK_LWIN + VK_APP5)
40C6 = mail (programmable, VK_LWIN + VK_APP6)
40C7 = browser (programmable, VK_LWIN + VK_APP7)
40C8 = backlight (programmable, VK_LWIN + VK_APP8)
40C9 = wireless (aka Fn+Right) (programmable, VK_LWIN + VK_APP9)
40CA = may be backlight [press & hold] (programmable, VK_LWIN + VK_APPA), <- but i not decide it :lol:.

Has your keyboard driver completed? I particularly want o remapp the messaging button

orangdayak
7th April 2007, 03:24 PM
can someone kindly develope a cab file to change the backlight button call for torch light. that will be great though.. thanks in advance

cktlcmd
7th April 2007, 04:04 PM
can someone kindly develope a cab file to change the backlight button call for torch light. that will be great though.. thanks in advance

Why not just do it manually, by applying this hack or getting the backlight CAB and VJCandelite CAB? Install them both and you can now assign the Backlight key to VJCandelite to serve as the torch when you press button 5.

orangdayak
7th April 2007, 04:29 PM
Why not just do it manually, by applying this hack or getting the backlight CAB and VJCandelite CAB? Install them both and you can now assign the Backlight key to VJCandelite to serve as the torch when you press button 5.

Sorry. Looks like i didnt search hard enough.. Just only wanted to revoke my statement and found out uve already replied. Thanks anyway Chris..

DJKk786
5th December 2007, 08:50 PM
Hey, i have done the following:
3. create a key "40C8"
4. Go to the key HKLM\Software\Microsoft\Shell\Keys\40C5
5. Select all values under that key and copy it
6. Paste it under the new key "40C8" you just created in step 3
---------------

7. rename it to suit a readable name like "Backlight"

What am I renaming? 40C8 or the string value "Name" to "Backlight" ?

Also, I removed the previous function of Button 4(Hold) which was set to recording, how do I assign this one?

Using 8125