Button mapping utility? - Mogul, XV6800 ROM Development

Is there any button mapping utility that will allow me to map one of the hardware buttons to a keystroke? Specifically, the ~ keyboard.

AE Button Plus?
I was going to say, AE Button Plus. But not according to the program's main page or screenshots.

mapping a button for a single keystroke is a little ridiculous. im not sure you're going to find any app that does this. it doesnt seem like anyone would waste their time making something like that when you have a built in keyboard with all the buttons. the fastest way to get a ~ symbol is to press Function and Q so you get the ' @ ', then press Function and Space to get turn @ into ~.
or, double press function, then press Q followed by Space

Incredible as it may seem, such a program exists, and better yet, its donateware.
Part of the amazing vijay555 site:
http://www.vijay555.com/?Releases:VJKeyPress

ebb said:
Incredible as it may seem, such a program exists, and better yet, its donateware.
Part of the amazing vijay555 site:
http://www.vijay555.com/?Releases:VJKeyPress
Click to expand...
Click to collapse
Though it won't work on android, some of the Linux guys may be interested in talking to the developer to solve some of their problems with the hardware buttons.

You could write a very (and I do mean very) simple mortscript and assign it to a hardware button as well.
For example, here is the contents of a mortscript you could write
Code:
Sendkeys ~
That would be the whole script...one line. If you wanted to get fancier, you could have the script do the ~ only if you are in a certain app. Otherwise, it would retain the original function, but that would take a little more coding.

To answer the above question.... I can't use the Function Sym in the program I am using (Logmein), so I need to figure out something different.
The above program sounds good. Where can I find a list of keycodes, or what is the keycode for the ~?
Thanks!

Related

[28 March 2009]Start Menu Button Hook v. 0.3

StartButton.
25 February 2009 v. 0.1 - First release
5 March 2009 v. 0.2 - changes:
+ option to intercept the tap on the text on the right of the start button, usually "Start"
I don't think it is a good idea, but since someone requested it...
+ option to specify the full path to the launched program, works for programs on memory card
28 March 2009 v. 0.3 - changes:
+ option to hook the hardware Window Buttons for devices that have it
Developed with iLaunch (http://forum.xda-developers.com/showthread.php?t=486618) in mind, it's a very simple application: you can specify a program, and it will be run when you "tap" on the start icon.
It's main purpose is to replace the Start Menu with another "launcher" application, allowing to access anyway to the Windows Start Menu by tapping on the right of the Start Button.
Someone requested to extend the hook to the "hardware Start Button", but afaik there is not such a standard hardware button, at least on WM5 and WM6.
Some devices have an hardware button for the Start Menu, some don't, some don't have hardware buttons at all.
There are other applications that can manage hardware buttons, StartButton is for the icon!
It's based on the code of GreenButton by Supbro (http://forum.xda-developers.com/showthread.php?t=462963)
Both are open source GNU GPL V3
StartButton source is at Google Code:
http://code.google.com/p/startbutton/
How to start a program?
HKCU\software\iApps\StartButton\Run
the default value is: "iLaunch\iLaunch.exe" (without the ")
You can specify here a relative path to your program files folder: in an english wm program files folder is, well, "Program Files", and usually applications are located inside it.
so if you want to use say "MyApplication.exe" wich is inside the "MyApplicationFolder" wich is inside the "Program Files" folder:
the full path is:
\Program Files\MyApplicationFolder\MyApplication.exe
and then you need to write:
MyApplicationFolder\MyApplication.exe
if you want to start an application that is not on the Program Files folder, you can write the full path instead:
\Memory Card\Program FIles\MyApplicationFolder\MyApplication.exe
How to extend the hook to the "Start" text?
HKCU\software\iApps\StartButton\HookText
Set this value to 1 for hooking the word "Start"
Delete the key for hooking only the Start button
You have to soft reset your device for the changes to have effect
How to extend the hook to the hardware button?
HKCU\software\iApps\StartButton\HookWinKey
Set this value to 1 for hooking the hardware button
Delete the key for hooking only the screen Start button
You have to soft reset your device for the changes to have effect
thanks a TON for this man, it was exactly what I needed!
thanks again
btw, how much RAM does it consume?
mbarvian said:
thanks a TON for this man, it was exactly what I needed!
thanks again
btw, how much RAM does it consume?
Click to expand...
Click to collapse
According to fdcTaskManager, 1Kb
wow, this is awesome! have always wanted something like this! thank you.
It doesn't work on my Glofiish X600. When is enabled the start menu icon doesn't respond no matter what application I define in registry. When I disable it start menu returns to normal.
dancer_69 said:
It doesn't work on my Glofiish X600. When is enabled the start menu icon doesn't respond no matter what application I define in registry. When I disable it start menu returns to normal.
Click to expand...
Click to collapse
You have to soft reset the device when you change the registry value.
And could you post the path you entered in the registry?
Hmm, maybe someone could use this hack to make a WM 6.5 style launcher...
Just out of curiosity, is there any reason you elected to make this an application instead of a service? I'm not being critical I was just curious because I'm in the early stages of developing a GUI-less application as well and I'm trying to decide which is the best way to implement (service vs application).
Great work!
lotion said:
Just out of curiosity, is there any reason you elected to make this an application instead of a service? I'm not being critical I was just curious because I'm in the early stages of developing a GUI-less application as well and I'm trying to decide which is the best way to implement (service vs application).
Great work!
Click to expand...
Click to collapse
The real reason is that GreenButton is an application, and StartButton is based on GreenButton source code...
But probably changing to a service is a good idea
allelimo said:
You have to soft reset the device when you change the registry value.
And could you post the path you entered in the registry?
Click to expand...
Click to collapse
I didn't soft reset everytime and I tried with appilcations in storage card.
This is only for main memory's program files path I suppose.
Is there any way to start a program from another path and mostly from storage card?
Help
So how to I map this To my program list are menu.?
dancer_69 said:
I didn't soft reset everytime and I tried with appilcations in storage card.
This is only for main memory's program files path I suppose.
Is there any way to start a program from another path and mostly from storage card?
Click to expand...
Click to collapse
As for now (version 0.1) StartMenu and the target application must be in the main memory, I'm sorry but I didn't clearly stated this...
nucentury08 said:
So how to I map this To my program list are menu.?
Click to expand...
Click to collapse
Sorry, I don't understand your question
Update(01/03/09): Implemented display scaling so more apps work. New version based on android 1.1 with working Gmail, Calendar and Market.
bug with new version for Vogue
When screen shut off with End Call Button Screen placement is random
Is this just for a hardware button or can it replace a screen tap as well? I ask only because I have no hardware start button on my device.
theoneownz said:
Update(01/03/09): Implemented display scaling so more apps work. New version based on android 1.1 with working Gmail, Calendar and Market.
bug with new version for Vogue
When screen shut off with End Call Button Screen placement is random
Click to expand...
Click to collapse
Wrong thread I guess...?
zarxic said:
Is this just for a hardware button or can it replace a screen tap as well? I ask only because I have no hardware start button on my device.
Click to expand...
Click to collapse
It's not for the hardware button, it intercepts the click (or "tap") on the Start Menu icon.
can you make it fully replace startmenu? not just icon press?...if so please do another version
pcarvalho said:
can you make it fully replace startmenu? not just icon press?...if so please do another version
Click to expand...
Click to collapse
i was about to say that also, thank you
i still get the menu if i press the text....
+1 for full interception
+1 full start menu

[Request][Mod] Flip search button function

I seldom use the search function on my n1 (quick press search button), compared to my shortcut (long press search button).
I'd love to have the function on the button flipped, so that only when I long press search I get to search, but simply quick pressing it brings me to quickdesk (my shortcut)
There has got to be others interested in this, but I can't find any solution on how to solve it..
Can somebody help me out?
Regards
-e
I THINK someone looked at this before, and without having an app running actively ALL the time to remap the default single press keys, its impossible.
dogiedogie said:
I THINK someone looked at this before, and without having an app running actively ALL the time to remap the default single press keys, its impossible.
Click to expand...
Click to collapse
Or i assume, editing the framework from source ? Like how wysie did it with long-press home-button. If u dont know what im referring to try cm6.
The home button long press change in cm6 is really nice.
Wondering how deep in the OS/framework these changes are..
Basically the OS should register the 4 "hardware" buttons the same way, so if one can be changed, all should be able to be changed..
Also since I just wanna swap functions, there is no need for a gui/front end to control the changes or map certain programs to it.
(I wouldn't complain if cm6 got a full search button control for both short and long press though)
Sounds like something that could be baked into a cm rom if enough people was interested in it..
-e
It should be possible, but I took a brief look at the source and couldn't find it -_-. Will look harder next week. (Weekend's here )
Glad to see you all liking the home button binding change .
I was actually thinking about this after seeing the MT Slide ad... All the genius button is is the search button binded to a skinned voice dialer (if it's even skinned, haven't looked into it)
Wysie said:
It should be possible, but I took a brief look at the source and couldn't find it -_-. Will look harder next week.
Click to expand...
Click to collapse
Massive props to you if you can pull this off!
Looking forward to some good news next week
Key Mapping
This is a good resource: http://www.kandroid.org/android_pdk/keymaps_keyboard_input.html#androidKeymapKeyCharMap.
Would be awesome if you could pull this off
Wysie said:
It should be possible, but I took a brief look at the source and couldn't find it -_-. Will look harder next week. (Weekend's here )
Glad to see you all liking the home button binding change .
Click to expand...
Click to collapse
Sent from my Nexus One

Good Text Editor/Word Proc. OR Soft Keyboard w/ Ctrl

Is anyone using a good text editor/word processor (spell check, large files, etc)? Needs offline support because I won't have wifi everywhere.
Alternatively, does anyone know of a good soft keyboard with ctrl keys? (thinking I can use this keyboard, if it exists, with emacs through optware in a terminal window)
ERamseth said:
Is anyone using a good text editor/word processor (spell check, large files, etc)? Needs offline support because I won't have wifi everywhere.
Alternatively, does anyone know of a good soft keyboard with ctrl keys? (thinking I can use this keyboard, if it exists, with emacs through optware in a terminal window)
Click to expand...
Click to collapse
Check out irssi connectbot in the Market, I might have the name wrong, just search for irssi. It has several meta keys in a special menu, although not sure it's enough for emacs. It works great for screen and irssi though.
khaytsus said:
Check out irssi connectbot in the Market, I might have the name wrong, just search for irssi. It has several meta keys in a special menu, although not sure it's enough for emacs. It works great for screen and irssi though.
Click to expand...
Click to collapse
Yeah after some messing around, i think i might roll with nano over emacs anyway.
For what it's worth, I decided to give this combo a try:
Better keyboard 8 - multi touch, better layout of secondary keys, directional arrows, can set key height, can disable fullscreen keyboard entry so you can see the context of what you're typing
Better terminal emulator pro - ctrl key support, temporary re-map of volume keys for tab completion, better support for resizing terminal when keyboard opens in landscape mode
Nano, installed through optware - most straightforward of the well-known terminal based text editors, can be set up with word wrap and spell check

[MOD] Keyboard Layout Tweak

This is my first real bit of development work. I just wanted to post a mod I put together, and how to install it. It's simple enough that someone else may have done it before me.
PROBLEM
Do you like ALT more than SEARCH? Do you often press SEARCH-TAB when what you really wanted was ALT-TAB? Do you realize that ICS has a perfect little Alt-Tab interface? Well! I have a perfect mod for you!
WHAT YOU NEED
TF201 (TF101 version coming soon!)
Keyboard Dock
Root (Does *not* require unlocking)
File replacement tool: Terminal Emulator, a Root File Manager of your choice, or ADB
STEP 1
(Root your TF201 if you haven't already.) Download my modded asusdec.kl below. You'll need to extract it. For the purposes of commands I use below, put the extracted asusdec.kl in:
/sdcard/download
STEP 2
navigate to: /system/usr/keylayout
STEP 3
Back up your asusdec.kl. I've provided a backup of mine, from .21, which should work in the event of a problem.
STEP 4
Replace your asusdec.kl with my modded one. You can do that any way you like, but I prefer doing it in a Terminal session. You may need to remount /system as RW. Terminal Commands are:
Code:
mount -o remount,rw /dev/block/mmcblk0p1 /system
Code:
mv -f /sdcard/download/asusdec.kl /system/usr/keylayout/asusdec.kl
STEP 5
Reboot! After that, you're all done.
RESULTS
If the mod has been performed correctly, your Search key will now perform ALT_LEFT instead, which allows you to use ALT commands where they would apply (Alt-Tab being the biggest one). To make up for this, your ALT_RIGHT key has been remapped to SEARCH. You've lost no functionality
FILES MODDED
/system/usr/keylayout/asusdec.kl
DOWNLOAD
ORIGINAL
MODDED
Awesome! Thanks!
Added to the ROM/Kernel and Tweak Directory.
Nice work
pbrauer said:
Added to the ROM/Kernel and Tweak Directory.
Nice work
Click to expand...
Click to collapse
Thanks! I'm looking forward to doing more in the future. I have all the files I need to do the same mod for TF101, but I don't have a rooted TF101 to test it on. I don't like posting unverified files, but if i can find a tester, I can wrap up that version ASAP.
I also intend to do a couple of mods for specific bluetooth keyboards.
This looks cool! Is there any way to physically swap the buttons too?
Sent from my Transformer Prime TF201 using XDA Premium HD app
Great, I was waiting for this since ages ...
Just one issu is that in France the keyboard layout is different and the right Alt is used for Alt Gr which allow to type some characters such as @, ^ [] #~ ...
It's a bit annoying not to be able to type these letters now ...
Anyway, great work
Moist said:
This looks cool! Is there any way to physically swap the buttons too?
Sent from my Transformer Prime TF201 using XDA Premium HD app
Click to expand...
Click to collapse
Yes you can! You have to do it manually though, there is no software that can do that
The way to do it, is to put your nail under the key on either top or bottom and just flip it out. After you've done that, you can just put it back by pressing it down untill you hear a nice 'click'.
I have done so myself and I must say I'm quite comfortable with the result
Btw, nice work Pandages!
I don't suppose the keyboard layout hack here could be adapted to add or change the shortcut keys? Like launching a different browser, or changing the lock key to do something else? My guess is that's baked into the Android OS, but had to ask.
Been searching for an app or hack to allow me to map my own keyboard shortcuts to whatever I want ( Ctrl + ` for terminal perhaps ) but haven't found anything that comes close.
Has anyone gotten this to work with Virtuous? I have the Modded file in there (checked file size) and it's not happening for me, even after a few reboots.
Moist said:
This looks cool! Is there any way to physically swap the buttons too?
Click to expand...
Click to collapse
Possibly! It looks like someone else already answered this one, above me.
polo2503 said:
Great, I was waiting for this since ages ...
Just one issue is that in France the keyboard layout is different and the right Alt is used for Alt Gr which allow to type some characters such as @, ^ [] #~ ...
It's a bit annoying not to be able to type these letters now ...
Anyway, great work
Click to expand...
Click to collapse
If you'd like to work with me, I could make a version that would do specifically what you need. I'm happy to help.
RubenRybnik said:
I don't suppose the keyboard layout hack here could be adapted to add or change the shortcut keys? Like launching a different browser, or changing the lock key to do something else? My guess is that's baked into the Android OS, but had to ask.
Been searching for an app or hack to allow me to map my own keyboard shortcuts to whatever I want ( Ctrl + ` for terminal perhaps ) but haven't found anything that comes close.
Click to expand...
Click to collapse
Actually yes. It would be super easy to make the Lock key do something else, but most of the types of keystrokes you're looking for are baked into the framework. Most of them can launch your default app for a given function, rather than the stock app, but some are stock-app-specific. I like the idea of Ctrl+` to get a terminal, but I think that's outside of the scope of what I can do with .kl hacks.
razgriz8426 said:
Has anyone gotten this to work with Virtuous? I have the Modded file in there (checked file size) and it's not happening for me, even after a few reboots.
Click to expand...
Click to collapse
I haven't used that ROM, as my TF201 remains locked. However, if you can provide me the *.kl files from the relevant directory, I can probably whip something up for you.
Very interesting ... looking at the layout file. You're right, would be easy to switch out what keys to what( Even the page up fn+arrow up combo ). I wonder where those key definitions like " MEDIA_PLAY_PAUSE" are actually defined? If it's just a constant to a function definition in some apk then maybe we could decompile it and change the const definition to make any keys "Special function" do something new. Hell, maybe the keyboard recognizes fn+t or any other key with fn as a new numeric key id, then we could add new ones off the function key. Going to delve into some of the system apks to see what I can ferret out.
Not too hopeful here, seems much to easy, but its a start.
RubenRybnik said:
Very interesting ... looking at the layout file. You're right, would be easy to switch out what keys to what( Even the page up fn+arrow up combo ). I wonder where those key definitions like " MEDIA_PLAY_PAUSE" are actually defined? If it's just a constant to a function definition in some apk then maybe we could decompile it and change the const definition to make any keys "Special function" do something new. Hell, maybe the keyboard recognizes fn+t or any other key with fn as a new numeric key id, then we could add new ones off the function key. Going to delve into some of the system apks to see what I can ferret out.
Not too hopeful here, seems much to easy, but its a start.
Click to expand...
Click to collapse
The special buttons are defined in /system/app/Keyboard.apk
There was a mod created which changed the browser button to use your default rather than be hard-coded to the stock Brower app
Original thread is here: http://forum.xda-developers.com/showthread.php?t=1497624
Sent from my Transformer Prime TF201 using Tapatalk 2
Pandages said:
Do you like ALT more than SEARCH? Do you often press SEARCH-TAB when what you really wanted was ALT-TAB? Do you realize that ICS has a perfect little Alt-Tab interface? Well! I have a perfect mod for you!
Click to expand...
Click to collapse
Yes but I also like ESC more than the Back Button. Mind cooking up another one with ESC modded in? I dont know if esc is hard coded to cause back in android.
Im always hitting back on accident when using splashtop, It registers the left alt now tho!
Is there any way to type unicode with alt codes? I'm really sick of not being able to triforce while on my tab.
Sent from my tf9001 with XDA XD.
Before jumping to downgrade and root my .21, is it possible to push such files through ADB (without root)? That would be awesome =)
Does this still work on .28 update?
Or does it need to be updated?
Crap. I should of just done the mod without trying to switch the keys.
I think I pried the alt key off to hard and now it won't sit back flush on the key again.
Wonder if I can RMA the keyboard for a faulty key =\
The mod will persist through the upgrade from .21 to .28, no real possibility of problems. Still works great for me.
As for making a version with ESC instead of Back, yeah, that could probably be done pretty quickly. Only thing is, how are various applications going to interpret ESC? Most android keyboards don't provide ESC, so many apps just interpret Back as ESC (terminal emulators, etc.)
clockwork58 said:
Crap. I should of just done the mod without trying to switch the keys.
I think I pried the alt key off to hard and now it won't sit back flush on the key again.
Wonder if I can RMA the keyboard for a faulty key =\
Click to expand...
Click to collapse
happened to me too. check the pins underneath the keyboard to make sure they're all open and you can put the "stick" part of the keyboard back into that part of the key.
---------- Post added at 10:38 AM ---------- Previous post was at 10:37 AM ----------
Pandages said:
The mod will persist through the upgrade from .21 to .28, no real possibility of problems. Still works great for me.
As for making a version with ESC instead of Back, yeah, that could probably be done pretty quickly. Only thing is, how are various applications going to interpret ESC? Most android keyboards don't provide ESC, so many apps just interpret Back as ESC (terminal emulators, etc.)
Click to expand...
Click to collapse
any ideas on how to make the sleep button a true delete button, not just an extra backspace button?
nhshah7 said:
happened to me too. check the pins underneath the keyboard to make sure they're all open and you can put the "stick" part of the keyboard back into that part of the key.
thanks. when i took out the alt key i took the white part with it. And only took off the cap part from the search key. once i seperated it and put the white part back on, the top of the key went on smoothly. Now to actually DO the mod.
Click to expand...
Click to collapse

[Q] Changing the left "Fn" key to "Alt Gr/Alt"

Hi guys!
I was wondering if it was possible to change the function of the left Fn key into something more useful like another Alt. The thing is there are only 4 dedicated Fn functions on the keyboard the pgup/down home/end which is always use with the fn key right next to it.
On the other hand using the multitask with the keyboard (Alt Gr+Tab) a bit of a nuisance because you always need 2 hands.
Anyway, whatever the reasons it would be great to be able to change that. Is there a way? I have root and i'm on .21.
clouds5 said:
Hi guys!
I was wondering if it was possible to change the function of the left Fn key into something more useful like another Alt. The thing is there are only 4 dedicated Fn functions on the keyboard the pgup/down home/end which is always use with the fn key right next to it.
On the other hand using the multitask with the keyboard (Alt Gr+Tab) a bit of a nuisance because you always need 2 hands.
Anyway, whatever the reasons it would be great to be able to change that. Is there a way? I have root and i'm on .21.
Click to expand...
Click to collapse
There is a mod over in the Dev forum which swaps the alt and search keys, which solves the issue you describe. The mood is very simple and can be accomplished by simply editing the file in question. ( /system/usr/keylayout/asusdec.kl). You could easily re-map any keys you wished
You will need to be rooted though.

Categories

Resources