Related
I have a vodafone universal, and using Start-settings-buttons, it was possible to assign functions to the 2 keys on the top line of the keyboard with dashes "-" on them.
I have installed jwrights crossbow ROM and, I would like to assign these buttons.
I have searched and failed to find out about these 2 buttons (ihave found the backlight mod thread,but cant figure out about these 2)
thanks
steve
hollytree said:
I have a vodafone universal, and using Start-settings-buttons, it was possible to assign functions to the 2 keys on the top line of the keyboard with dashes "-" on them.
I have installed jwrights crossbow ROM and, I would like to assign these buttons.
I have searched and failed to find out about these 2 buttons (ihave found the backlight mod thread,but cant figure out about these 2)
thanks
steve
Click to expand...
Click to collapse
Using any registry editor (eg. resco), go to HKCU\Software\Microsoft\Today\Keys. The key 112 is the left "-" key, and the key 113 is the right "-" key. Open and edit to name and point them to what program you want to assign as follows:
- default: in the string box you type the name of the program you want to assign the key
- Open: in the string box you type the link to the .exe or the .lnk file of the program
i thought 112 and 113 are buttons on th etoday screen, not the hard buttons on the keyboard. the ones next to the red and green phone icons. Are these OC07 and OC08, but i am not sure
Have assigned 113 without problems but 112 (left "-") somehow became assigned to PHONE application. So now if I press green button - phone appears, if I press left "-" again phone appears. Although in HKCU\Software\Microsoft\Today\Keys it shows different program to be opened. Any ideas please?
p.s. after few soft-resets started working in the way it's been assigned in the registry.
Those buttons with dashes are called soft keys. So just search for soft keys and you will find an app that will enable you to assign different applications to the soft keys. Search for HACKS, you will probably find it in the hack thread.
I suggest use of PQz as a great alternative.
V
Mods plz delete this reply...
thanks
hi, i was wondering, can i set the comm manager to one of these soft keys? im running wm6 (crossbow) i cant find the comm manager (the little green dot on the today screen) on any of the start menu lists??
Pugme said:
hi, i was wondering, can i set the comm manager to one of these soft keys? im running wm6 (crossbow) i cant find the comm manager (the little green dot on the today screen) on any of the start menu lists??
Click to expand...
Click to collapse
Yes you can. First step is to find the soft key CAB or files I mentioned. After installation, go to the windows folder and locate the comm manager icon and create a copy or shortcut of it at the Windows>Start Menu>Programs folder or to any folder you want.
Of course, you don't have to assign this to any soft keys, another way for the Comm Manager to show up is by pressing the Fn key and the Right arrow key simultaneously.
cheers geezer!! top man! so long little green dot, it was the only thing cluttering up my today screen! i am now fully happy with my exec!! just gotta sort out my gprs and skype settings! and then i think it'll do everything i want it to do!
ok, well, iv put the soft key applet onto my phone, then moved it into the windows directory and then soft reseted, but im a bit stuck now? how do i reasign my 2 soft keys?? please help!
Pugme said:
ok, well, iv put the soft key applet onto my phone, then moved it into the windows directory and then soft reseted, but im a bit stuck now? how do i reasign my 2 soft keys?? please help!
Click to expand...
Click to collapse
Look into Start>Settings>System Tab>Here you will see the app for soft key assignment.
But before that, you need to go to Windows folder and copy the Comm Manager app and create a shortcut icon on Windows>Start Menu>Programs.
Whenever I hit the FN + J key to get a colon ), it gives me a slash instead (/). Anybody know why? How do I reset the physical keyboard back to defaults?
Thanks.
Nevermind, fixed it. I had made the manual reg changes to use classic word completion. I re-imported my exported reg file before the changes and my keyboard is OK now.
Hi guys
Any idea how i can do a cut, copy and paste function during editing of my contacts info? I tried to tap and hold on the selected text but no cut, copy and paste function is made available to me. Or is there any available freeware that will allow me to do this?
It's quite difficult not knowing or having this function for shifting the text between the fields as i need to re-type them out each time.
Thanks in advance for the assistance.
That's easy... ctrl+c, ctrl+v, ctrl+x. There is a reason that I LOVE my TP2 for having a Ctrl key, I use it all of the times. Contacts and Google Maps are two areas where the right click menu doesn't appear, and the keystroke shortcuts come in quite handy!
Jason
if you have a tilt 2, theres no copy and paste on the keyboard, i still havent figured out a way to map it to FN+C or FN+X or FN+V, but i just use swype onscreen keyboard to do it =X
You may could use "VitoCopyPaste.exe" to Cut, Copy and Paste. Just Google around. I also had it on my phone once.
You can use Keyboard Controller (link below) to remap many different keys. Since the Tilt2 doesn't have a control key, I suggest remapping the FN key+C for copy and FN+V for paste. You can allow keys to directly open programs and lots more - GREAT program. I can vouch for it working very well with the Tilt2.
http://forum.xda-developers.com/showthread.php?t=554240
Enjoy!
theres no function for copy and paste on the keyboard controller, or else i would have done that already, unless someone has a solution that i dont know about
Yeah why i didn't think of that - Ctrl + X, Ctrl + C, Ctrl + V
Thanks all for the help.
Cheers!
Jon
anyone have any idea to do this for the tilt2?
if you don't have the ctrl button, the "HTC People" contacts manager seems to have left out the popup cut/copy/paste menu on tap and hold of selected text.
but if you go to the windows contacts manager, the cut/copy/paste does come up. just either go to "More" within the HTC manager, or just start up contacts manually through the program list.
i actually prefer the windows contacts manager and have disabled the HTC tab.
xredjokerx said:
theres no function for copy and paste on the keyboard controller, or else i would have done that already, unless someone has a solution that i dont know about
Click to expand...
Click to collapse
Pick a key you are unlikely to want and map it is the Ctrl key then you can use ctrl x ctrl c and ctrl v
barbo said:
You can use Keyboard Controller (link below) to remap many different keys. Since the Tilt2 doesn't have a control key, I suggest remapping the FN key+C for copy and FN+V for paste. You can allow keys to directly open programs and lots more - GREAT program. I can vouch for it working very well with the Tilt2.
http://forum.xda-developers.com/showthread.php?t=554240
Enjoy!
Click to expand...
Click to collapse
xredjokerx said:
theres no function for copy and paste on the keyboard controller, or else i would have done that already, unless someone has a solution that i dont know about
Click to expand...
Click to collapse
xredjokerx said:
anyone have any idea to do this for the tilt2?
Click to expand...
Click to collapse
Touch_Pete said:
Pick a key you are unlikely to want and map it is the Ctrl key then you can use ctrl x ctrl c and ctrl v
Click to expand...
Click to collapse
I use the Keyboard Controller on a Tilt 2 and have FN + C mapped to Ctrl -c (specifically, emulate key press, key 67 [C key], with the Ctrl box checked, send to OS). I have done similar with FN + X, & FN + V. Works great as copy, cut, & paste everywhere I have tried it.
I cant select ( highlight ) text from windows live messenger..
Also its very annoying to tap on the screen, and than select: select text, to be able to highlight and copy something.. is there anything i can do, to use it like htc kaiser... being able to select the text immediately ? without all those steps?
adoute said:
I use the Keyboard Controller on a Tilt 2 and have FN + C mapped to Ctrl -c (specifically, emulate key press, key 67 [C key], with the Ctrl box checked, send to OS). I have done similar with FN + X, & FN + V. Works great as copy, cut, & paste everywhere I have tried it.
Click to expand...
Click to collapse
This works for me, I have been doing this since I got my Tilt2.
I have Z,X,C,V,A mapped. Very useful.
ctrl key functionality w/o need for ctrl (or Fn) key
I have found that the keyboard controller program also allows you to do this without having to use Fn (or any other two key sequence). What you can do is assign a long key press for C, X, V to serve as copy, cut, paste by emulating CTRL-C, CTRL-X, CTRL-V, while assigning the short key press (click) to retain the default key functions (i.e., c, x, v).
Of course, you can expand on this. I applied this method to create a Fn-key-free keypad. For number 1, a single click is still an apostrophe, but long press is number 1. While the built-in option to double-click Fn is definitely more efficient when you have lots of numbers to enter, my sense is that a long key press is more convenient when you have just a few numbers to input.
And, this method also works for undo (i.e., control Z on your computer can be long press z on your tilt 2). Which is a beautiful thing.
I don't know about everyone else but I would love to see apps that support our Nook's hardware buttons for scrolling and turning pages. I created an small app just to find out exactly what these buttons were. I have attached the test apk and the source for it.
The buttons generate a KeyEvent that can be captured in the normal manner for handling key presses.
Left top button - 92
Left bottom button - 93
Right top button - 94
Right bottom button - 95
All the developer has to do is test for those in addition to whatever they are already monitoring for. I am going to begin emailing developers with this information and see if I get any "takers". I have emailed the following and will post a status here if I hear back:
Kindle - 5/16: Received an email saying the suggestion would be forwarded on to the appropriate development group
NewsRob (via google group) - 5/16: The developer is going to add page up/down and article up/down support!
FeedR - 5/16: Email sent
Aldiko - 5/16: Email sent
FBReader - 5/16: Email sent
In addition I am going to add hardware button support to some open source apps. I have located a number of open source RSS apps:
http://code.google.com/p/feedgoal/
http://code.google.com/p/feeddroid/
http://code.google.com/p/reader/
As an example of what we can do I have attached an updated FeedGoal where I have added support for the hardware buttons to scroll up and down on a feed article.
Update 5/17/2011:
I have modified the Browser from the stock Eclair to support page buttons and compiled it. When I try to start it on the Nook it comes up and then shuts down. One of the times I saw a "signing in" box. My thoughts is that it is trying to do something that requires gapps on the phone? If anyone has any ideas I'd be glad to try them.
* Reserved
Keys are actually
key 407 RIGHT_NEXTPAGE
key 412 LEFT_NEXTPAGE
key 139 LEFT_PREVPAGE
key 158 RIGHT_PREVPAGE
xboxexpert said:
Keys are actually
key 407 RIGHT_NEXTPAGE
key 412 LEFT_NEXTPAGE
key 139 LEFT_PREVPAGE
key 158 RIGHT_PREVPAGE
Click to expand...
Click to collapse
Those numbers are the scancodes from the keymap file TWL4030_Keypad.kl. If you are wanting to watch for key inputs in an Android application you override the "onKeyDown(int keyCode, KeyEvent event)" method and the "int keycode" that get's printed out is 92-95.
The format of the keymap file (TWL4030_Keypad.kl) is "key SCANCODE KEYCODE [FLAGS...]". In your example 407 is the SCANCODE and "RIGHT_NEXTPAGE" is the KEYCODE. The numerical value of "RIGHT_NEXTPAGE" is either 94 or 95 depending on how you set your Nook up.
If someone wants give the two attached apk's and test and verify (I've already ran them myself) that they do work as intended that would be great.
- The TouchTest should print out 92-95 (keycode) on the screen when you press them.
- The FeedGoal should page up and down when you press the right or left side keys. I may go back and change the left side to be page up/down and the right side to be article back/forward.
ReadItLater
I add a ticket to ReaditLater Support Forum.
http://support.readitlaterlist.com/...droid-support-for-nook-touch-hardware-buttons
update:
i contact the dev of electrodroid, too
are there new answers from the devs?
If you remaps two keys to VOLUME_UP and VOLUME_DOWN, almost all reading-centric programs work will hardware buttons. I have tested:
Read It Later
Kindle
Aldiko
FBreader
CoolReader
Moon+Reader
RSSdaemon
NewsRob
BuzzBox RSS reader
They all works with remapped buttons.
aruangra said:
If you remaps two keys to VOLUME_UP and VOLUME_DOWN, almost all reading-centric programs work will hardware buttons.
Click to expand...
Click to collapse
yes, of course.
but this is just a workaround and i already recognized that there are situations where i have to take the nook in the other hand to turn a page...
for example: i use the left keys remapped to volume for readitlater, so i can only use the right keys on the default reader app (which i prefer).
i think for some apps you will always have to do this remapping, especially for the kindle app in my thougts.
and it seems to me that the devs will easily can integrate this buttons in their apps.
a lot of other apps are already working with the default mapping:
e-mail
twicca
titanium backup
root explorer
alogcat
autostarts
moon+
...
Is there no way to remap the hardware buttons using like a driver software (sorry, completely noob regarding android software). Remapped buttons would help on repligo and ezpdf, my preferred readers.
I liked seeing the NewsRob support in the change log. But it only scrolls half a page down so you have to hit it twice.
I found that my old technique of remapping the key to SPACE worked better; SPACE is a page-down shortcut for most WebView apps. Unfortunately my SHIFT SPACE mapping in the layout file seemed to ignore the shift part. :-(
Android 3.0 adds real page up/down keys finally, so more apps should support the keycodes then. This isn't just a Nook issue; I've been trying to fix this on my Galaxy Tab too.
I blame Apple for not including a page down function because it's so "cool" to flick the screen around. Hope you have good timing.
Good news, everyone!
This weekend I received reply from FBReader authors. Here is the translation:
Since version 1.1.3 FBReader is able to read external file with actions mapped to keys. One can put keymap.xml file into main directory, which is /sdcard/Books by default.
File format can be seen in example:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<binding key="4" action="cancelMenu"/>
<binding key="23" action="processHyperlink"/>
<binding key="24" action="volumeKeyScrollBackward"/>
<binding key="25" action="volumeKeyScrollForward"/>
<binding key="66" action="processHyperlink"/>
</keymap>
All possible actions are here:
Code:
String SHOW_LIBRARY = "library";
String SHOW_PREFERENCES = "preferences";
String SHOW_BOOK_INFO = "bookInfo";
String SHOW_TOC = "toc";
String SHOW_BOOKMARKS = "bookmarks";
String SHOW_NETWORK_LIBRARY = "networkLibrary";
String SWITCH_TO_NIGHT_PROFILE = "night";
String SWITCH_TO_DAY_PROFILE = "day";
String SEARCH = "search";
String FIND_PREVIOUS = "findPrevious";
String FIND_NEXT = "findNext";
String CLEAR_FIND_RESULTS = "clearFindResults";
String SET_TEXT_VIEW_MODE_VISIT_HYPERLINKS = "hyperlinksOnlyMode";
String SET_TEXT_VIEW_MODE_VISIT_ALL_WORDS = "dictionaryMode";
String TURN_PAGE_BACK = "previousPage";
String TURN_PAGE_FORWARD = "nextPage";
String VOLUME_KEY_SCROLL_FORWARD = "volumeKeyScrollForward";
String VOLUME_KEY_SCROLL_BACK = "volumeKeyScrollBackward";
String SHOW_MENU = "menu";
String SHOW_NAVIGATION = "navigate";
String GO_BACK = "goBack";
String EXIT = "exit";
String SHOW_CANCEL_MENU = "cancelMenu";
String ROTATE = "rotate";
String INCREASE_FONT = "increaseFont";
String DECREASE_FONT = "decreaseFont";
String PROCESS_HYPERLINK = "processHyperlink";
String SELECTION_SHOW_PANEL = "selectionShowPanel";
String SELECTION_HIDE_PANEL = "selectionHidePanel";
String SELECTION_CLEAR = "selectionClear";
String SELECTION_COPY_TO_CLIPBOARD = "selectionCopyToClipboard";
String SELECTION_SHARE = "selectionShare";
String SELECTION_TRANSLATE = "selectionTranslate";
String SELECTION_BOOKMARK = "selectionBookmark";
Program must be restarted in order to pick up changes in config file.
Can anyone test if this really works? I can't test it right now.
And, I suggest to make a donation to this wonderful program authors.
Cheers.
Great news!
If other developers would do the same, we'd be in heaven.
I'll only be able to try it tomorrow, but I'll inform as soon as I do it.
DenisTheMenace said:
Good news, everyone!
This weekend I received reply from FBReader authors. Here is the translation:
Since version 1.1.3 FBReader is able to read external file with actions mapped to keys. One can put keymap.xml file into main directory, which is /sdcard/Books by default.
Program must be restarted in order to pick up changes in config file.
Can anyone test if this really works? I can't test it right now.
Click to expand...
Click to collapse
Thanks! It works very nicely with FBReader. My keymap.xml file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<keymap>
<binding key="92" action="nextPage"/>
<binding key="93" action="previousPage"/>
<binding key="94" action="nextPage"/>
<binding key="95" action="previousPage"/>
</keymap>
Does anyone know the key number of the Nook button? It's quite useless for FBReader and it would be nice to remap it to some other function. Thanks!
Anyone thought of trying to create a service that'd catch the button presses outside of the stock apps that'd then send the right command for whatever. For example if you press the page forward button or page backward button in stock apps it'd function as designed. If you push it somewhere else like within your custom launcher or another app it'd perform as menu/home/back whatever
GabrialDestruir said:
Anyone thought of trying to create a service that'd catch the button presses outside of the stock apps that'd then send the right command for whatever. For example if you press the page forward button or page backward button in stock apps it'd function as designed. If you push it somewhere else like within your custom launcher or another app it'd perform as menu/home/back whatever
Click to expand...
Click to collapse
Yes for remapping the n-button. See this post. But still haven't had the time to do it. Too busy with work.
GabrialDestruir said:
Anyone thought of trying to create a service that'd catch the button presses outside of the stock apps that'd then send the right command for whatever. For example if you press the page forward button or page backward button in stock apps it'd function as designed. If you push it somewhere else like within your custom launcher or another app it'd perform as menu/home/back whatever
Click to expand...
Click to collapse
I've started working on exactly this during this weekend. I have so far succeeded in creating service that runs in the background and makes the upper left button a "HOME" button - meaning it shows the home activity of your choice rather than the built in menu like the n button. I'll be glad to give more technical details on what I have learned so far (when I have time, probably next weekend).
In the mean time, I would like input from other users as to some specifics on how it should work.
Here is my current vision:
- Have option to start the service manually or automatically start at boot (currently hard coded to start a boot)
- The keylayout files can remain untouched so that they still work properly for the stock applications
- the service will be aware of what Activity is in the foreground and remap purpose the buttons accordingly.
- there will be a settings Activity that lets you choose the functionality of each button on a per application basis
- the choices will to be to broadcast an Intent or to create a virtual key press (for example, my "HOME" button does not actually cause a HOME key press, but broadcasts a act...MAIN cat...HOME intent, my next experiment will be to send Vol Up/Down keys when Kindle app is running)
And this is slightly off topic, but I would like put this on sourceforge or google so that others can contribute and have easy access to it. I've never done that before, so advice on this would be appreciated.
mycr0ft said:
but I would like put this on sourceforge or google so that others can contribute and have easy access to it. I've never done that before, so advice on this would be appreciated.
Click to expand...
Click to collapse
May I suggest github? git is much more sophisticated than CVS/SVN and their clones.
I basically agree with the app functionality. May be I will take part in implementation (I wish there will be ~36-48 hours in a day )
Thanks for the advice. github looks promising.
Anyone interested can have a look:
Code:
https://github.com/mycr0ft/nook-touch-button-service
I've run into a bit of a problem with simulating a key press. The android developers have not made it easy (which is good for device security).
- I have tried Instrumentation.sendKey..., but that only works withing the same application. Even with the INJECT_EVENT permission, you cannot inject events into other applications (unless they are signed by the same packager). Repackaging every single app that you load does not sound like a good option.
- I have tried using the 'sendevent' shell command. This appears to be limited to only duplicating scan codes keys that actually exist.
- I am currently trying to compile uinput driver (available in the source code download from bn) and load it using insmod. I am stuck here for the time being because I can't figure out how to get it to compile to the right kernel version (version magic mismatch in dmesg)
I think you will need root to inject a key event in an other app
You can look at the SoftKeys source code (here), it may help you.
In the past, SoftKeys used a script called "input" to inject events (according to http://forum.xda-developers.com/showpost.php?p=10497165&postcount=309) but now it seems that it uses something else ...
mdall, thanks very much. this is very useful information.
Droid Comic Viewer
I think also Droid Comic Viewer would benefit from hardware buttons support.
It's a nice little comic reader app supporting all relevant formats (CBR, CBZ, ACV & image formats). Animations can be disabled and there's no dependency with touchscreen interface (it can be entirely operated with button actions). This would make it perfect for an e-ink screen.
I sent an email to the devs today, let's hope they get back to us!
I have noticed I have used the escape key on the k400r keyboard as a back button. it works for some apps but not all apps. I wish to remap the music key between the left mouse button and the home key to be equivalent to the bluetooth remote "back" button. anybody have any experience with this. I found this and was wondering if it was possible.
http://forum.xda-developers.com/showthread.php?t=850464
I know I can remap in kodi with the keyboard.xml file but I'm looking to do it global and not per application.
I'm hoping to do it as a keyboard remap within the OS as opposed to loading an application running in the background.
remapping pc-lock button instead now.
escape button on keyboard is 1
back button on remote is 158
lock pc button is 125
The music button is a press and hold and is 171 I decided I'n not using that but instead using the lock-pc button after the home button which is 125.
lsusb yields the keyboard to be 046d:c52b
I modified the /system/usr/keylayout/qwerty.kl file and added "key 125 BAcK" and reboot. nothing
I did the same for Vender_046d_Product_c532.kl which is for the logitech revue keyboard and reboot. nothing
any ideas?
got it. its generic.kl and I modified "key 125 META_LEFT" to "key 125 BACK WAKE_DROPPED"
i've been so used to using the esc key I almost feel like I want to map that to "BACK WAKE_DROPPED"
note I also had the same mod in qwerty.kl and Vender_046d_Product_c532.kl if it made an impact.
SUMMARY:
ROOT REQUIRED
So Since there is no .kl file for the k400r it uses /system/usr/keylayout/generic.kl I decided to create a new .kl file with the vender/usbdevice id. I restored generic.kl from it's backup. I copied "generic.kl" to "Vender_046d_Product_c52b.kl" (this correlates to my lsusb command earlier) and performed my keymods to this file replacing "key 1 ESCAPE" with "key 1 BACK WAKE_DROPPED"
Works great! now any mods I want for this keyboard
These keyboards are so popular, why hasn't amazon even considered that we sideload apps and use one for default. now that I understand this a have a usb air motion mouse/keyboard I'm going to create a vender.kl file for and start remapping it correctly. hope this helps others with keyboard devices
oh and the way I found out the key commands was from teh keyntrack.apk at the bottom of this link.
http://forum.xda-developers.com/showthread.php?t=850464
completed
Igonre attatched file it works intermittently. follow steps below for all rooted devices
Firetv1Rooted Firetv2Rooted and FireStickRooted
tested on firetv1root_onRBOXSEPT2016 firetv2_rooted_on5.04 and firetv stick_ROOTED_on5.05
instead of copying the file below you must edit the /system/usr/keylayout/Generic.kl
first back up the file to /sdcard/Generic.kl
then change the original file in /system/usr/keylayout/Generic.kl
by changing lines "key 125 META_LEFT" to "key 125 MENU" and also change "key 171 MUSIC" to "key 171 BACK"