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?
a solution for this: http://forum.xda-developers.com/showthread.php?p=13028244#post13028244
enjoy
work well,thanks
work well,thanks
Jonous said:
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?
Click to expand...
Click to collapse
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
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)
Related
I was wondering if anyone knows how to remap one of the fuze's keyboard keys to function as the TAB key, like in the TP. I've read a few threads about changing an english keyboard to a foreign language keyboard, but nothing on changing individiual keys. It looks too complicated for me to understand too. I think I can spare the Windows key if I can use it for the TAB function. Thank you in advance.
This would be great. I'd change the right shift key.
You could try Mobiion's MagiKB lite
This would be awesome, i want to switch the OK and the Fn keys on the left side and the Wifi and T9 keys on the opposite.
Thanks for your suggestion, wonghyf. I looked into Mobiion's MagiKB lite, but the program is not very intuitive. In fact, I couldn't really figure it out. Do you know if there is a good tutorial? Thanks again
ganglion5 said:
Thanks for your suggestion, wonghyf. I looked into Mobiion's MagiKB lite, but the program is not very intuitive. In fact, I couldn't really figure it out. Do you know if there is a good tutorial? Thanks again
Click to expand...
Click to collapse
Here is the link to magiKB lite's help: http://www.mobiion.com/mgkblguide.html
I think this section is particularly useful:
Fake Key: Replace the original key with a new one, so that when the base key is pressed, the fake key will be sent instead of the original one. This option is only available when the key type is VKey
This is how I map the fake keys:
Select [Edit Key-Mapping]>[Add New...], and then follow the instructions below:
1. Change its type to [Vkey]
2. Set focus to field [Key Code]
3. Select [Menu]>[Get key code...]
4. Now press the key you want to remap FROM
5. Tick "Fake this key with"
6. Set focus to field just right to "Fake this key with"
7. Select [Menu]>[Get key code...] and press the key you want to map TO; or select from predefined codes>
8. Press OK (left soft key)
You have to install hookmgr.cab as well to make magikb lite work. But still on my Touch Pro, some keys can't be mapped properly because the original key will be triggered as well (e.g. the SMS/MMS button), don't know why.
I have changed my Diamond bay a Touch HD and what I miss more is the d-pad.
I really need it because I read a lot on my device and it is necessary to turn pages, etc. So I searched for a solution.
I've using remaping keys programs for some days, but they are big and have some limitations so I've done my own program with a very simple behaviour:
-Volume UP is remaped to d-pad UP. Can be hold for autorepeat.
-Volume DOWN is remaped to d-pad DOWN. Can be hold for autorepeat.
-Double click Volume UP is remaped to d-pad LEFT. Does not support autorepeat.
-Double click Volume DOWN is remaped to d-pad RIGHT. Does not support autorepeat.
-Double click with hold in Volume UP is remaped to d-Pad RETURN with Hold.Does not support autorepeat.
-Double click with hold in Volume DOWN is remaped to d-Pad RETURN.Does not support autorepeat.
-If a call is being established or is active the volume keys will behave normally.
-Running the file a second time will close the resident with a small tone.
The program is small (7Kb) and remain resident without making use of CPU, it is simply a keyboard hook.
To install it copy the file werever you want and execute it. If you want it to start automatically after a Soft Reset make a link (DO NOT PUT THE FILE DIRECTLY) under \Windows\Startup or your locale equivalent.
REVISIONS
June 24, 2009: I've liberated the source code in order to allow other developers to improve the concept!!
August 28,2009:
-Soved the Back Arrow issue on HTC devices.
-Added support for unloading the program
-First try to add suport for Return-Hold (Context menus)
IMPORTANT
Some users are having issues with VolDpad on HD2 and Diamond 2. This one solves the issue:
http://forum.xda-developers.com/showpost.php?p=8062091&postcount=4
Hope it will be useful
If you like it and want to give me a buck please use this button:
Thanks to the following donators:
Johannes B., Federico, Mike P., Marie-Françoise H.,
DOWNLOADS
Download VolDpad from my site.
really nice app
but does it work in touch pro 2 ?
I've tested it only on a Diamond and on a Touch HD.
But the technology should be the same for the TP2
well this is brilliant! and it works great on my blackstone.
few suggestions:
- it would be a good idea to have command-line support so that you can turn it on and off easily by creating shortcuts or assigning hardware buttons to enable or disable it, or having a status check so that if it's on, next time you run it will turn it off and vice versa.
-it would be great to have both the "ok" button support and the "hold ok" button support so that you can load "right click" menus.. (you can have the upper vol button function as "ok" and lower vol button function as "hold ok")
wonderful work
it works perfectly on my HD!
Virtual button interrupt on HD?
hi all,
installed this on my HD and it works well, but i notice that when i try to use the virtual button to go <Back> (looks like a left arrow <-- ), now it goes up instead.
anyone else have this issue?
This is a fantastic app, will be useful specially for those who play games on their phone. One query; is there a way to remap the vol key buttons? For example can volume up key be mapped to left key, and volume down key mapped to right key. I say this because in Diamond and Touch Pro the Up and Down key on D-Pad functions normally, its only the left key and the right key that has a problem.
I just check - program works good on samsung i780. Is it possible to disable left/right/return function, but remain only up/down? Could you please add (in future version) any configuration file?
Best regards
Tomasz
lifeisaparody said:
hi all,
installed this on my HD and it works well, but i notice that when i try to use the virtual button to go <Back> (looks like a left arrow <-- ), now it goes up instead.
anyone else have this issue?
Click to expand...
Click to collapse
Same here on the Diamond 2, otherwise, fantastic stuff! If we can either get the Back Arrow button to act like the OK, or return it to its former glory, we are good to go!
Brillant, and I agree with the ML idea
fantastic. been looking for something like this for my touch hd
Awesome app! It works great with mobipocket. You can easily start/kill it with mortscripts (put links in the start menu, and you can do it with voice command). Edit the path as necessary.
kill("\Program Files\VolD-Pad\VolDpad.exe")
run("\Program Files\VolD-Pad\VolDpad.exe")
well done job
Nice work thx
vol buttons as a d-pad
Hi....anyone got it working for worms world party?? Kinda miss that game after changing from a kaiser to a blackstone....
thanks in advance.
Great App! Thanks!
Great stuff. I would add my vote to remove the left/right functionality and replace with 'OK' and 'context menu' support. I miss my Kaiser scroll wheel
It is difficult to do smething that will be perfect for all
I'll try to add support for exiting the program (easy) and for context menus (more difficult).
I also revise the issues with the back key.
EDIT: Done
One thing, What context menu can be reached with holding return? I wish to know for testing it
Thanks
Usefull app, I will get use to it.
Does not work for the TG01! After soft-reset it hijacks the bluetooth, switching it on and removing the BT link from the comm manager. It will not allow delete from any folder where it is copied! even the shortcut will not delete. (Had to manually disable the BT, then it auto deletes the shortcut, andyou can delete from a secondary folder. After soft-reset it will again delete from Primary folder, releasing control of the BT!)
I don't know about everyone else, but I've found that I instinctively want to push the home button on my phone when I want to end a call. It's burned me SOOOOO many times. I think it's funny how many Android devices seem to have their buttons mapped wrong! For example, I just bought a Coby Kyros 7015A tablet and it has a "rocker" style button on the top that just logically seems like it should be a volume up/down rocker, but for some odd reason they decided to assign "home" and "Menu" to the two sides of the rocker. In addition, the big silver button in the middle seems like it should logically be the Home button, but it is the back button instead.
After a little fiddling around with my Kyros tablet I discovered where the keymapping files are located:
Code:
/system/usr/keylayout/
there are two plain text files in this directory which need to be modified in order to make changes to keymapping, "qwerty.kl" and the other one is going to be named something to do with your particular device. You will need to edit them with a Unix compatible editor like Notepad++ on Window$, but Gedit or Kate will do just fine on Linux.
After successfully remapping the "back" button as "home" and the home/menu as volume up/down on my Kyros, I decided to tackle setting a button to hang up on my Optimus. Of course the first thing I did was make a backup in the recovery.
NOTE! This may not be a great idea for every ROM. Make sure that before you proceed, your ROM has "Spare Parts" and you can change the default behavior of the "end" button. The default behavior of the End button is to shut the screen off and it can not be changed on some ROMs.
This goes without saying, but you are editing files in /system/ so you will need to be rooted.
On the Optimus running CM7, the two files you need to edit are "qwerty.kl" and the other file is called "thunder_keypad.kl"
Code:
adb pull /system/usr/keylayout/
* make sure you put that last / at the end! it tells it to pull all of the files in the directory.
Editing these files is a pretty straightforward process. Basically, after you pull the files from your phone, you open the files and replace the instances of "HOME" with "ENDCALL". Save the files and push them back to the device, and then reboot. That's it!
Code:
adb push qwerty.kl /system/usr/keylayout/qwerty.kl
adb push thunder_keypad.kl /system/usr/keylayout/thunder_keypad.kl
adb reboot
Now you can hit the home button to hang up during a phone call instead of having to hit one of the hardware buttons to wake up the phone, which usually puts you at your homescreen or somewhere else just to have to get back into the phone call and hit the soft button hopefully before the screen goes black because of the proximity sensor (it's designed to do that!)
Like I had mentioned earlier, you're going to want to go into spare parts and change the default "End" button behavior to "Go to Home". Basically you remapped the end call button to where your home button is and then you're telling the Android OS that the end call button will emulate the normal behavior of the home button. Make sense? Didn't think so...
Works great on Mik's CM7. The only "bug" i've found so far is that when you're in the app drawer, hitting home doesn't take you back to your homescreen.
Here are my edited .kl files
Just in case you're really REALLY lazy and don't want to take the time to edit the files yourself (or if you don't have a Unix compatible editor)
Just remount and push them to /system/usr/keylayout/
I'm looking for a way to simulate pressing the "Home" hardware key at the bottom, to return to the Sense home tab, without actually pressing that key. I have seen several programs which can take over things like taps on the "X" button or even top taskbar clock, but although they can be set to close or minimize the active program, they don't seem to be able to achieve the same effect as pressing the "Home" key.
The closest I've been able to come is wktask which can assign the "Show Today" action to the "X" soft button, but it doesn't work so well with WM 6.5.X versions due to other glitches and incompatibilities, so is not ideal.
Is there any such program that can simulate the "Show Today" action, ideally by a tap on the top taskbar clock? So that the hardware key can be bypased?
quite easily:
you can create a link to Home link (found in start Menu) which will return to home sence tab.
This can be linked to anything that can select a shortcut as a function.
Example being Utask, this gives extra function to x screen-button & start menu button by long press on these screen buttons, long press mapped to Home.lnk & you got what you want.
Mortscript could also be useful in setting these sort of things up.
Thanks for the reply and advice. However on the rom that I am using (Artemis) there is no "Home" shortcut available via the start menu. In another rom (Energy) I do see this shortcut in the start menu, but am unable to find it as a file in \Windows\Start Menu\ and so I have no way of creating a link to it or pointing to it in the options for uTask.
Can anyone provide instructions for finding or creating this "Home" shortcut so that I can implement it as desired? If anyone is able to locate it as a file/link on their rom, is it possible to upload it here to this thread so that I can copy it onto my device?
Or any other ideas?
The home link is basically a link to: ManilaShortcut.exe
with parameter: home
You can set this up in utask to one of its touch buttons by setting it to launch- ManilaShortcut.exe
found in windows folder & adding parameter- home
If you do not have ManilaShortcut.exe I will upload it & shortcuts I have for it.
Thanks Mister B, the instructions as posted above worked as desired and I am now able to switch back to the Sense Home Tab at any time from any application, by tapping on the top taskbar clock. This is exactly what I wanted to accomplish.
Doing a "minimize" was already possible by default with uTask, but that would not always take you right back Home if you had other apps open and running behind the current foreground one. Now it's one-click to return home while leaving everything open and running.
Very much appreciated.
Hi there. The topic says it all. Does there a way exist for me to use my menu button (the physical button) to pick up a call? I looked around in the settings, (I'm on ICS Final Mod, kevinlekiller's) couldn't find it.
Tried to look for it, but turned up empty handed. So, does it exist?
Nope it doesn't. Never heard of such a thing.
You can edit /system/usr/keylayout/sec_key.kl .
ketut.kumajaya said:
You can edit /system/usr/keylayout/sec_key.kl .
Click to expand...
Click to collapse
sec_key.kl is not present. The following files are present
Code:
AVRCP.kl
qwerty.kl
sec_touchscreen.kl
I looked around but it seems to me that remapping would change the keys behavior for the entire time, but the key mapping should change only when there is an incoming call.
Okay so there is no key state as such for picking up a call. The nearest key state being ENDCALL (ironically).
Code:
HOME #Launches "Home"
MENU #Launches "Menu"
BACK #Takes you back to the last activity
SEARCH #Launches "Universal Search"
CALL #Launches the "Phone" activity and corresponding .apk or initiates a call
ENDCALL #Ends a call
CAMERA #Launches "Camera" activity and corresponding .apk
FOCUS #Initiates Auto-Focus while using the Camera
VOLUME_UP #Self explanatory
VOLUME_DOWN #^
The above is from the here
In the above link, Decad3nce puts forward the idea of custom app launching inspired by BuglessPete's How to make script run by using hardware keys
After reading both, I think might be a way of enabling the menu key/home key to pick up a call.