How-to: Program other function to the useless backlight key - JASJAR, XDA Exec, MDA Pro General

From this thread:
http://forum.xda-developers.com/viewtopic.php?p=189058#189058
SiliconS said:
cktlcmd said:
MvanIperen said:
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.
Click to expand...
Click to collapse
Can anyone expand to his instructions please. Did anyone tried to remap their backlight button yet?
Click to expand...
Click to collapse
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
Click to expand...
Click to collapse

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

Thats an absolutely fantastic find. I wonder if we can actually map individual keys to different functions. Now that would be simply superb!!!

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

I have pm'd MvanIperen. Hopefully, he will join us soon. Look forward to his input in this...
UD.

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.

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!

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.

universaldoc said:
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.
Click to expand...
Click to collapse
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

Can you guys please give me a step by step instruction. I have no idea as to what you guys are taking about. PLEASE.

cktlcmd said:
Can you guys please give me a step by step instruction. I have no idea as to what you guys are taking about. PLEASE.
Click to expand...
Click to collapse
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

dreamtheater39 said:
8. Softreset using some app like psShutXP or pocket plus (and NOT using the hole)
Click to expand...
Click to collapse
I reset using the hole with no problem at all.

dreamtheater39 said:
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
Click to expand...
Click to collapse
THANKS VERY MUCH TO YOU AND EVERYONE WHO POSTED. I GOT IT WORKING. YAHOOOOOOO!

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.

universaldoc said:
40C1-Contacts
40C2-Video Telephony
40C3-Camera
40C4-Voice Recorder
40C5-Speed Dial
40C6-???
40C7-???
40C8-Backlight (now added)
40C9-???
Any suggestions guys?
Click to expand...
Click to collapse
40C6- Volume up
40C7- Volume down

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.

@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-???
.
.
.
.

40C9 - Calendar

DaveUK said:
40C9 - Calendar
Click to expand...
Click to collapse
Which is the calendar button?

Left side next 2 green phone key. Also programs the screen calendar button to the bottom left of screen.

Related

Maping of the OK button

Is there a solution to map the OK button to an app which closes programs?
AE Button Plus does not allow to map the OK button.
It does, you select 'File' then 'Add button'. Press the OK button and then 'Add key' and it will be added to the list where you can assign it to an action.
varden said:
Is there a solution to map the OK button to an app which closes programs?
AE Button Plus does not allow to map the OK button.
Click to expand...
Click to collapse
PQzII will fulfill your need
blcc said:
PQzII will fulfill your need
Click to expand...
Click to collapse
I cant find any manual for pqzii where i can learn to use it..as when i run the program it does nothing nothing...and even doesnt came with any manual...
any help on that??
daedalia said:
It does, you select 'File' then 'Add button'. Press the OK button and then 'Add key' and it will be added to the list where you can assign it to an action.
Click to expand...
Click to collapse
OK.
But which one is correct: #4075 or #405C?
Sometimes I get the first one sometimes second.
sajib said:
I cant find any manual for pqzii where i can learn to use it..as when i run the program it does nothing nothing...and even doesnt came with any manual...
any help on that??
Click to expand...
Click to collapse
I beleive pqzii is a good program to map the keys, but unless someone posts a manual as to how to use it, this program will render useless to newbies. Of course, those who are very knowledgable in programming will be the only ones benefiting from the hard work of the writer of this program.
Bottom line, how to use this program? Can someone who knows how to use it be kind enough to give us, newbies, some help?
Personally, I am using the X button program and it is great. I like to map the bottom OK button to become the X button to close programs from running in the background.
Thanks in advance to those who are willing to help.
My experience is :
1. Go to the install folder of PQzII with file explorer (picture 1)
2. Choose PQzII setup.exe (picture 2)
3. Tick the "Use OK button(Task Close/All)" checkbox under Windows option (picture 3)
4. Untick the " Use this function" checkbox under Icon option (picture 4)
5. Create a shortcut to Windows/Startup folder (picture 5)
HI blcc:
Thanks for the above. But the OK buttin still does not close the program - as I click it, it seems to have closed it but I looked at the Memory to find out the programs running - the one tat supposed to have been closed is still there.
BTW - One more newbie question about step 5 - how do your create a short cut to the Windos\StartUp?
Thanks again.
paulclo said:
HI blcc:
Thanks for the above. But the OK buttin still does not close the program - as I click it, it seems to have closed it but I looked at the Memory to find out the programs running - the one tat supposed to have been closed is still there.
BTW - One more newbie question about step 5 - how do your create a short cut to the Windos\StartUp?
Thanks again.
Click to expand...
Click to collapse
I can really close the program with OK button after apply the setting. For creating a shortcut, I use resco file explorer, tap and hold at the item and a pop up menu will appear. Choose "cut", and go to the statup folder, tap and hold again and choose "paste shortcut". That is.
Hope you understand my poor English.
blcc said:
I can really close the program with OK button after apply the setting. For creating a shortcut, I use resco file explorer, tap and hold at the item and a pop up menu will appear. Choose "cut", and go to the statup folder, tap and hold again and choose "paste shortcut". That is.
Hope you understand my poor English.
Click to expand...
Click to collapse
Hi Blcc:
Your English is very good and it makes mine pale.
Thank you once agin, my OK button now closes running program and there is nothing is the background.
I hope others who are hoping to utilize these two programs will happen to read this thread.
Thanks a million.
varden said:
OK.
But which one is correct: #4075 or #405C?
Sometimes I get the first one sometimes second.
Click to expand...
Click to collapse
4075 is what mine is set to.
PQzII was a bit buggy for me.
is there a way to have exceptions to closing the programs?eg:i like messaging and contacts to always be running in the background so if i press the ok hardware button it only minimizes messaging and contacts while really closing the other applications.

[APP] DredSensor v1.1 - Allow you to personalize Hard Key Actions

=======================================================================
New version 1.2 available here
=======================================================================
=======================================================================================
DredSensor v1.1d:
=======================================================================================
Link ->: DredSensor-v1.1d
New features in v1.1d:
=====================
Let you choose which Key/Action you affect to each key.
Launcher Mode let you affect an Action for:
Double Tap event
Click event
Long click event
An icon for config tool is created in Program list.
Cache Program List for quick loading in Config window.
Fixes a few bug from v1.1, v1.1b and v1.1c
Tips:
=====
If you upgrade to this version, your config file will be cleared (sorry ).
To define a profile that applies on every applications, launch config tool and edit "Default" config.
If the key you want to affect is not listed, you can define it manually:
Type "Key:[email protected]@", with @@ = VKey code of the key you want to affect.
You can find VKey code list on : http://msdn.microsoft.com/en-us/library/bb431750.aspx
=======================================================================================
DredSensor v1.0:
=======================================================================================
=======================================================================
Reviewed on gadgetmix.com: See the article
=======================================================================
If you have tried to play a game needing left and right key on an HTC Touch Diamond, you noticed that they are 2mm wide and if you click next to it, you get back to home page or to dialing menu etc...
So I've written a prog allowing you to lock these 4 keys actions and replace it by classical key event (VK_LEFT, VK_RIGHT, ...).
In that way you can play tetris, and use "Pick-Up" and "Hang-Up" keys for going left and right.
Link ->: DredSensor
To use it, you need:
1) An HTC Touch Diamond (it's the only one i have so i can't test it on other models)
2) Install the .cab
3) Reboot your HTC
4) Run a game (or app or ...)
5) Get your stylus out and back-in, in less than 1 second
6) Click "Yes"
----- A config window opens:
7) Check that Type = "HardKeySimul"
8) Click "Ok"
Now you can use (and eventually assign) your 'Home', 'Back', 'Pick-Up' and 'Hang-Up' keys in that game/app.
Actually, the 'Pick-Up' and 'Hang-Up' keys are always defined as Left and Right events.
Have fun.
Ps:
For people interested, the other "Type" in the config window are:
- "Launcher": allow you to quicklaunch 4 app (that you define in the config wnd) when you double tap (not click, just tap) on one of those 4 keyz
- "Scroll": allow you to scroll the current window by tapping those 4 keyz panel
- "KeySimul": allow you to send left/right/up/down events by tapping those 4 keyz panel
Thx, now I can use opera mini and pie (good for mlb's wap) in full screen
Thank you very much. Great program. Now, with left and right softkey hardware buttons, I can play with my java games.
Claus72 said:
Thank you very much. Great program. Now, with left and right softkey hardware buttons, I can play with my java games.
Click to expand...
Click to collapse
Do any of them even work on the vga screen?
first of all: great app!
only thing i don't like is that now every time i pull out the stylus the phone vibrates. maybe you could make the "window-catching-thing" optional, so you have to enable it first?!? with that, the app would be perfect to me!
figured out an other problem: the "scroll-wheel-function" in opera and tomtom doesn't work anymore...
Herr_Knigge said:
first of all: great app!
only thing i don't like is that now every time i pull out the stylus the phone vibrates. maybe you could make the "window-catching-thing" optional, so you have to enable it first?!? with that, the app would be perfect to me!
figured out an other problem: the "scroll-wheel-function" in opera and tomtom doesn't work anymore...
Click to expand...
Click to collapse
Hello.
As it's a background program, making vivrate the phone is the best way i found to easlily know if it's loaded or not.
If you don't like that, you can disable it by manually editing the 'Config.ini' file in '/Program Files/DredSensor':
Go under the section you want to disable vibrator in (ex: "[Default]")
Add: "NoVibrate=1"
For the scroll problem, i didn't change scrolling system from v1.0 so are you sure it was working in v1.0 and it's no more working in v1.1?
@Dredger97
Thank´s for this wonderful tool!
Greeting
Slide
is there a wa to map home/back to A/B controller buttons? Trying to get it to work with PocketNester Thanks
Thanks
I will tried
Seems to be good. Shall download and try...
Doesn't work for all hard keys
I have the original diamond and it doesn't look like any of the key presses work.
I could really do with replacing volume and Home/Back Buttons. Do these buttons
support Long press too?
bugsykoosh said:
is there a wa to map home/back to A/B controller buttons? Trying to get it to work with PocketNester Thanks
Click to expand...
Click to collapse
If you go in PocketNester -> Option -> Controller, you can see that it's default mapped to 0xC4 and 0xC3 key codes.
So all you have to set in DredSensor is:
- Home: "Key:0xC4"
- Back: "Key:0xC3"
I tried that on super mario, it works, but the problem is that you can't press those keys and simultaneously press Left and Right so it's quite hard to play...
In fact you can map Volume Up and Down keyz to button A and B and it's much easier to play.
djfuego said:
I have the original diamond and it doesn't look like any of the key presses work.
I could really do with replacing volume and Home/Back Buttons. Do these buttons
support Long press too?
Click to expand...
Click to collapse
The actual version of DredSensor doesn't change anything to volume up/down buttons.
All it catches is Home,Back,Talk and End hard keys.
About long press,
- In "Launcher" mode, you can define action for "Long click"
- In "HardKeySimul" mode, if you make a long press to "Home", and mapped "Left" key to "Home" button, it will occure a long press on "Left" key.
I just don't seem to be able to get this to work - I follow the first post to remap the home and back keys to the softkeys, but home always takes me back to touchflo.
Are there any other things I can try, or is it just the ROM i'm using doing this?
Furbious said:
I just don't seem to be able to get this to work - I follow the first post to remap the home and back keys to the softkeys, but home always takes me back to touchflo.
Are there any other things I can try, or is it just the ROM i'm using doing this?
Click to expand...
Click to collapse
I don't think it's a ROM problem.
The 2 most common reasons for not working are:
It doesn't work if you have G-Scroll or something similar installed.
When you edit config for an App, this config only applies when "Window Title" and "ClassName" of the foreground window matches what is defined in that Config.
If it doesn't match any config, DredSensor doesn't catch your hard keys.
You can use wildcards in your Config so, for example, if the app you want to configure always changes its title, you can set "*" for window title.
everything gose well in my diamond! Thx!
just a little suggestion : as volume up/down could be very useful in some app (like a game emulator), could you make them configurable in your next version?
nice job!
Furbious said:
I just don't seem to be able to get this to work - I follow the first post to remap the home and back keys to the softkeys, but home always takes me back to touchflo.
Are there any other things I can try, or is it just the ROM i'm using doing this?
Click to expand...
Click to collapse
I make a softreset and works whit no problem, when i click home button open the program i assign.
Doesn't seem to work in Phone screen. I am not sure if it is because it is a dialog class. If this could be made to work, it would be great as when a person has multiple phone numbers you could scroll by pressing right or left key.
Thanks in advance
just tested it with tetris and it worked great. good stuff
Dredger97 said:
I don't think it's a ROM problem.
The 2 most common reasons for not working are:
It doesn't work if you have G-Scroll or something similar installed.
When you edit config for an App, this config only applies when "Window Title" and "ClassName" of the foreground window matches what is defined in that Config.
If it doesn't match any config, DredSensor doesn't catch your hard keys.
You can use wildcards in your Config so, for example, if the app you want to configure always changes its title, you can set "*" for window title.
Click to expand...
Click to collapse
I've nothing like that installed - I've tried wildcards, and soft resetting between altering them, even setting the default so that it should catch any class or window so that the home and back keys are soft keys one and two.
It's semi trapping the window and keys.......I just wonder if your app is not being fed the correct window name/class, or there's some extra characters or something that is fooling it.
Here's an example - setting home and back keys to the softkeys, with a config of * for window, and * for class.
On the touchflo screen, pressing home will take it to the phone screen (correct left softkey action), but once in the phone screen, pressing home takes it to the touchflo screen when it should go to contacts.
If I'm in any other application, it never traps the home key, and will always go back to touchflo. Disabling touchflo doesn't change this, it takes it back to the today screen.
I'm using shak's rom if anyone else can confirm they can get it to work using that one

Map more hardkeys

Hi there,
Is there a way to map more hardkeys in Opal? I currently only have "Button1" and "Button1 (Hold)" listed in Settings/Personal/Buttons.
I looked up the keys in registry:
HKLM\Software\Microsoft\Shell\Keys\
There are actually three folders/keys:
40C1 = Button 1
40C4 = Button 1 (Hold)
40C6 = Undefined?
Can I add more keys by editing registry? Anyone has experience doing this?
I'm going to try this old trick
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)
I'll just try some random numbers (eg. 40C1, 40C2...)
Source post
Keep you posted!
vanshyp said:
Keep you posted!
Click to expand...
Click to collapse
I tried the wonderful PQz_CHECK.exe to detect Opal's hardkeys. Problem is that I don't see them in Settings/Personal/Buttons after adding them to the registry with the method you find in my former post.
eg. The big "Action" button is presumably hardkey "400D". I added the necessary data to HKLM\Software\Microsoft\Shell\Keys\400D but nothing gets listed.
I think only buttons that start with 40Cx are listed in "Buttons".
Maybe someone can find a solution to this? I know there is AEBPlus, but I like poking around
It would be great if we could get all the keys in the "Buttons" menu in Opal's ROMs.

Mail shortcut Inbox : change possible?

On the WM6.5 Today screen, the e-mail "tab" has 2 soft buttons " Contacts" and "View". I was wondering if it is possblie (via a registry tweak or additional cab file) to change one of those buttons to "Send/receive" ? Thanks in advance.
Anyone? I can't imagine it not being possible to change those buttons....
It is possible using CHomeEditor. But you will have to write the path of the app that runs when you press the button by yourself.
Just look for CHomeEditor and read the documentation.
lorin.bute said:
It is possible using CHomeEditor. But you will have to write the path of the app that runs when you press the button by yourself.
Just look for CHomeEditor and read the documentation.
Click to expand...
Click to collapse
Thanks. Seems a little complicated, but I'll try it.

Camera Button Dead after Sense ROM.

Any ideas how to restore button mappings for the lower right hand side button where after installing Miro's rom (and apparently other roms based on sense) it no longer works?
TONYKENT said:
Any ideas how to restore button mappings for the lower right hand side button where after installing Miro's rom (and apparently other roms based on sense) it no longer works?
Click to expand...
Click to collapse
All the sense roms break the camera button, no permanent solution at this time, best bet is to set a Home screen shortcut to activate the camera, and use the onscreen shutter button.
Sorry if this answer is not to your liking
TONYKENT said:
Any ideas how to restore button mappings for the lower right hand side button where after installing Miro's rom (and apparently other roms based on sense) it no longer works?
Click to expand...
Click to collapse
hi
its work for me!
how?
when you want to capture u must be attention to horizontal or vertical mode on
mobile and enable it manually on the touch screen.
sorry for my bad english. i hope help u
TONYKENT said:
Any ideas how to restore button mappings for the lower right hand side button where after installing Miro's rom (and apparently other roms based on sense) it no longer works?
Click to expand...
Click to collapse
Download : Vito Button Mapper and mapp this button for camera
A simple registry edit will enable a hidden option in the button settings which will allow you to change the function of camera button.
Using a registry editor, navigate to the following key. (If you are unsure as how to do this, use this forum's search function to look for guides on how to edit the registry. I use Resco File Explorer, which isn't free, but there are plenty of free registry editors.)
HKEY_LOCAL_MACHINE/Software/ControlPanel/Buttons/
You will see an entry called NoHardwareButtons.
Change the value from 1 to 0.
Now if you go to your button settings (Start - Settings - Personal - Buttons) you will notice a new option which allows you to assign the camera button to open any app you want. You can use this option to restore the button back to the camera if you want.
EDIT: I've created a cab that should change the setting for you. This is my first cab, so please let me know if it works or not.
thank you fo this . it works fine, but this is the path:
HKEY_LOCAL_MACHINE\ControlPanel\Buttons\
columbo said:
A simple registry edit will enable a hidden option in the button settings which will allow you to change the function of camera button.
Using a registry editor, navigate to the following key. (If you are unsure as how to do this, use this forum's search function to look for guides on how to edit the registry. I use Resco File Explorer, which isn't free, but there are plenty of free registry editors.)
HKEY_LOCAL_MACHINE/Software/ControlPanel/Buttons/
You will see an entry called NoHardwareButtons.
Change the value from 1 to 0.
Click to expand...
Click to collapse
mirolg said:
thank you fo this . it works fine, but this is the path:
HKEY_LOCAL_MACHINE\ControlPanel\Buttons\
Click to expand...
Click to collapse
Wow guys nice nice nice!!
Sadly loses the setting on each reboot!

Categories

Resources