[TUT] [ROOT] Remapping optical trackpad to play/skip music - Droid Incredible Android Development

I was tinkering with the optical trackpad bindings and discovered a very practical use for the trackpad: skipping songs. If a media player is not running, it will start it and start playing. If it was running, it just skips to next track. Unfortunately this remap still suffers from the well-known trackpad "delay", but hey at least you don't need to wake the device to skip anymore
There is another thing to note: I can't seem to understand which media player this mapping controls. It might seem to have to do with the date the app was installed, or which app you opened first at boot. Just because a media player is playing doesn't mean it will control it! It might open up ANOTHER player and start playing!
Steps [ROOT REQUIRED]:
Navigate to /system/usr/keylayout
Edit the file qwerty.kl
Look for this line:
Note: If you've modified this file, the key number may be 272
Code:
key 232 DPAD_CENTER WAKE_DROPPED
Change the line to say:
Note: The key number switch was intentional! 232 is wrong
Code:
key 272 MEDIA_NEXT WAKE
Save the file and reboot phone
Good luck and happy skipping
Edit: Attached flashable zips (thanks touchpro247!) to change the file. Please note if you have any other custom key mappings in qwerty.kl then flashing this zip will lose them!

so after we do this if we press the optical trackpad when the phone is locked it will skip to the next song?
thats pretty cool. i'll give it a try

Yup even when screen is off / phone locked it will skip. I find it really useful.

If i'm not playing music and use the trackpad button to take a picture what happens?

When the phone is on, the trackpad behaves like normal, eg the active application decides what the button does. It will not skip if screen is on

neato
Edit: this is pretty neat. Activated the wrong music player but I should have uninstalled that anyways.

Thanks, this is pretty sweet! It's working great with PowerAMP.
Finally the trackpad button is useful

where do you edit that file? in a file manager or adb?

madaggin said:
where do you edit that file? in a file manager or adb?
Click to expand...
Click to collapse
I was able to do it in Root Explorer but if you don't have that you can probably pull a copy of the file to your computer with ADB then edit it and push it back to the phone.

I was able to modify in root explorer and save the file but when I reboot the changes arent being saved and applied..it reverts back to previous file

Any reason why I can't seem to get this to work in terminal emulator? Tried vi and nano, and the file wouldn't write out even if I opened it with root privileges.

Just flash the zip.
Thanks goes to the OP.

If you're editing the file yourself, make sure the filesystem is mounted as R/W not R/O

I cannot get this to work on the Gingerbread ROM... Any chance of an update?

if I use this, and say I do not have any media files open, will it act as default?

Related

How to make custom 'Keyboard Sliding Sounds'

Want to create your own keyboard sliding sounds?WM6 comes with three by default, and you can't add custom ones...
Or can you?
Using a registry editor, nav to:
\HKLM\Software\HTC\SlidingSound
There are 3 keys: 0,1, and 2. These represent the three current sounds: piano, xylophone, and whatever the third is.
Make a copy of one of these and name it 4. Inside 4, set Default to the name for your sound. Then make the In and Out point to the appropriate wav's in the Windows directory.
Soft reset your device, then go to Start > Settings > Keyboard Sliding Sounds. Your new entry should appear in the list.
Hope it helps!!
Ryan
And do you have cool sliding sounds for download. I already searching a long time for cool ones.
Regards, Tommy
Yeap Indeed, Can someone please link us some sliding sounds??it would be very helpfull for the p4350 community
Well, after downloading a bunch of free sound FX, I've chopped them up and sped them up/slowed them down... Here's a few to try. I think they're pretty cool, better than the built in ones at least...
Ryan
I know ya gotta love the Transformers.
the transformers sounds are really cool. i did speed them uip slightly and lowered the volume
guys...what am I doing wrong here? total commander won't allow me to copy or past in any of the directories?
I followed the above steps...but when it comes down to it...I can use the "copy/move" ....but then it won't allow mw to paste.
I also can't copy my sound from my mem card to any windows directory.
I'm totally new to WM and making mods to my WING...any help would be greatly appreciated!
Cheers!
yeah i dont understand how this works either do you guys think you can make more explained instructions thanx
VooDoo1 said:
guys...what am I doing wrong here? total commander won't allow me to copy or past in any of the directories?
I followed the above steps...but when it comes down to it...I can use the "copy/move" ....but then it won't allow mw to paste.
I also can't copy my sound from my mem card to any windows directory.
I'm totally new to WM and making mods to my WING...any help would be greatly appreciated!
Cheers!
Click to expand...
Click to collapse
It seems like you try to make a classical PPC copy paste by the tap and hold and you're not supposed to act that way.
Be sure to use the Copy/Move option in the File menu to do so.
Good luck.
Googeling for star trek original series door sound.... psssscheek
foxenesys said:
It seems like you try to make a classical PPC copy paste by the tap and hold and you're not supposed to act that way.
Be sure to use the Copy/Move option in the File menu to do so.
Good luck.
Click to expand...
Click to collapse
I did try the copy/move option...still not working? Let me ask you guys this, once I select the item...and then do copy/move...and find the place where I want it to be...how do I then put it in that spot?
Im getting really frustrated because I dont understand what Im doing...I love my Wing tooo much to give up though!
Blaah...this is what happens when you go from Linux phones to WM..haha
hey
DaMyth said:
I know ya gotta love the Transformers.
Click to expand...
Click to collapse
i love the sound effects! thanks a lot dude!
Why not just edit the already existing sound effects.. like inside the folder 0 you can edit the in and out entries.. like on my hermes I edited '0' folder in registry to be the transformers sound by editing in with value data of my documets/slider4_in.wav and out with my documents/slider4_out.wave
For those having trouble following this guide, I have one at the HoFo Forums. Should be real easy to follow.
http://www.howardforums.com/showthread.php?t=1195063&highlight=Sliding+Sound+Guide
My Take
For those of you who are having trouble creating amd understanding the reg file, any easy way to do it is to just edit the ones already listed. That really is just the easiest. Just make sure you copy your wav files into the Windows folder on your device. And for a treat, my sounds; a Lightsaber!
VooDoo1 said:
guys...what am I doing wrong here? total commander won't allow me to copy or past in any of the directories?
I followed the above steps...but when it comes down to it...I can use the "copy/move" ....but then it won't allow mw to paste.
I also can't copy my sound from my mem card to any windows directory.
I'm totally new to WM and making mods to my WING...any help would be greatly appreciated!
Cheers!
Click to expand...
Click to collapse
i guess the easiest way is to
1) download the wav-files and rename then to 3_in.wav and 3_out.wav (the number 3 depends on the number of previously installed sounds)
2) edit the registry on your device (as instructed in the 1st post)
3) connect to activesync.
4) explore your device, go to the windows directory (on the device). and then copy the .wav files into the windows directory.
5) restart the device
6) edit sliding sound settings and it should work
WTF...am I doing wrong
Try as I might (I am regedit savy!) I still can't get this trick / hack / addon to work.
Reg settings seem fine, softreset...nothing...???? WHY
Sound files in windows work perfectly as I've run them directly from a command line address so I know they are pointed to correctly within the 2 paths.
Any help would be appreciated.
SHORTCUT
i first copy original wav to sd. then use the rename trick. right click on original name and select rename. then using the touch screen keyboard press the ctrl key + c. then take the sound u want to use and right click it and select rename. then use touch screen keyboard and press ctrl key + v. now that u have rename ur new sounds with the original name, hightlight both in and out sounds and copy them too the windows folder, overwritting original sound. then go to settings and change sliding keyboardsounds with the original name of one u over written.
are there any programs to allow for slider sounds for the mda???
i have the star trek sounds PM me if you want tehm

Remap the Stereo Headset Button for MPlayer

Hey,
after 2 months I am really almost perfectly happy with my Diamond after numerous tweaking but only one thing which continues to bother me:
When I am listening to Music, the lack of easy control using hardware buttons. In particular, I would like to be able to use the button on the Stereo Original Headset to assign to go to the next track in MPlayer.
I already was able to assign any .exe program to the button if pressed long (basically making the phone belief that I am using VoiceCommander and editing the Registry Key "HKEY_LOCAL_MACHINE\SOFTWARE\OEM\VoiceCommand\Path"
However, there is obviously no .exe File that skips to the next track so I have been looking for a method which simulated a keypress of "NEXT", and tried VJKEYPRESS. However, the regoistry key accepts only a exe file and does not work with having some argument of the file! So basically, I would need an .exe-File which does the same as VJKeypress ### and in this case this button could be literally mapped to whatever one wants, and save you grabbing your diamond off your coat just for skipping a song.
Any suggestions how to get this problem solved?
(In particular since the Headset button cannot be reassigned using PHM Keys, PQzII or AEButton Plus)
Cheers,
Johannes
Compile exe files for the Diamond (maybe from a .lnk or a keypress?)
After trying out Pocket Player and the newly announced feature of their button plugin, still it does not recognize the Headset button. So back to zero.
Basically, there is no use for this button other than answering a call or starting (when pressed long) an exe file. (Both .lnk Files and .exe fiels with command line parameters are not recognized!!)
So anyone an idea how to compile exe files for the WM of the diamond to run .e.g a .lnk file or simulate a keypress or is it rather difficult?

[APP][3-13-2009] Kwik-E-Map v0.2 -- Simple FUZE keyboard mapper (map CTRL, etc)

KwikEMap
Version 0.2 (Beta)
To Use
======
* Install the KwikEMap.CAB on your device. (Do NOT install it on a Storage Card)
* Execute KwikEMap.exe, it will run in the background and your key mappings will be in effect. It uses about 35KB of memory and less than .5% of your CPU (while keys are being pressed only).
* Add a shortcut to KwikEMap.exe to \Windows\StartUp if you'd like the app to run each time your phone boots.
* If you execute KwikEMap.exe while it is already running, the KwikEMap Window will appear. From there, you can HIDE the application again, or QUIT and restore all key mappings to normal.
* There is also a "Show Window" keyboard shortcut you can use to open the KwikEMap window. By default, it is FN+PERIOD.
Default Key Mappings
=====================
These all can be changed in the KwikEMap.cfg file. See "Important Note", below, regarding the first 4 mappings.
Code:
FUZE Key Maps To Notes
------------- ---------- ---------------------
CALENDAR CTRL see "Important Note", below
CONTACTS TAB see "Important Note", below
EMAIL HOME see "Important Note", below
INTERNET END see "Important Note", below
SHIFT+BACK ESC
QUESTION MARK CTRL Makes a nice right CTRL key, for pressing CTRL-X, etc.
SHIFT+PERIOD ? Since we no longer have a question mark due to prev. map
FN+PERIOD KwikEMap Shows KwikEMap Window
You can use modifiers with this mappings and use multiple combinations. For example, you can press CTRL+HOME, or SHIFT-TAB.
Important Note Regarding CALENDAR, CONTACTS, EMAIL, INTERNET
=============================================================
To use these keys, you must configure the FUZE so that the normal functions of those keys are disabled. Some ROMS (Da_G's, NATF, RSW, etc) let you do this via the Buttons setting. If your ROM doesn't, this must be done by placing "null" shortcuts in specific locations. (thanks to Da_G for this information)
There is a shortcut in Program Files\KwikEMap\ called "NoButton.lnk". The shortcut basically does nothing. Simply copy this shortcut to the locations indicated to effectively disable the normal function of any of the 4 keys you'd like to use:
Code:
To Disable Copy "NoButton.lnk" as:
------------ ----------------------
CALENDAR \Windows\Start Menu\Calendar.lnk
CONTACTS \Windows\AppButtons\Contacts.lnk
EMAIL \Windows\Short_Messaging.lnk
INTERNET \Windows\Start Menu\Programs\Media Net Home.lnk
Notes:
1) To hide the start menu location links so they don't appear in the Start Menu, simply edit the files' properties and mark it as "Hidden".
2) Future versions of this app will copy these shortcuts automatically.
3) Even if those shortcuts do not currently exist on your phone, you still can (and must) disable the normal function of those keys by creating the "NoButton.lnk" shortcuts as specified if you wish to map them.
Setting up your own Mappings
============================
* See the KwikEMap.cfg file for full information and examples.
* While the KwikEMap window is open, you can press various keys and KwikEMap will show you the corresponding Key Codes and any modifiers used. You can use this to assist in setting up your own key mappings.
* The order you list the mappings matters; the first one found is what gets used. So, if you want to map WIN as CTRL, but keep WIN+PERIOD as the normal Windows Key, list WIN->CTRL first, then list CTRL+PERIOD->WIN next, and it will work. (This is because WIN has already been re-mapped to CTRL)
* The app should be smart enough to avoid cycles, so you can swap two keys. For example, you should be able to map A to B, and then also B to A, without any problems.
* Note that the FUZE's keyboard is odd; you will see that when you press the Question Mark key, for example, it actually is registering as "SHIFT+/" even though you are not pressing the SHIFT key! Keep this in mind as you set up your custom mappings.
* For now, you must QUIT and re-start the app to re-read the mappings from the .cfg file.
* A full list of Windows Mobile key codes can be found here:
http://msdn.microsoft.com/en-us/library/bb431750.aspx
Notes Regarding Specific Keys
=============================
* The WINDOWS key now should be fully mapable; i.e., it makes a good CTRL key.
* The CAPS LOCK key is partially mapable (i.e., you can map it to TAB), but there are two issues:
1) It still toggles the caps state, even when mapped
2) It never stays registered as pressed, so you cannot use it as a modifier-type key (i.e., CTRL)
* You can use the FN key as a modifier (i.e., map FN+C to CTRL+C to "cut"), but only if that key doesn't already have a FN modifier built-in. So, feel free to map a whole bunch keys like FN+A, FN+C,FN+B, etc, to whatever you want! (some examples are below)
Other Mapping Examples
======================
Use the WINDOWS key as a CTRL key, but still map WINDOWS-PERIOD to the old windows key:
5B=+00 (WIN -> CTRL)
+BE=5B (CTRL+PERIOD -> WIN)
Use CAPS LOCK as a TAB:
14=09
Use FN+A, FN+X, FN+C, FN+V for Select All, Cut, Copy, Paste, respectively:
#41=+41 (FN+A -> CTRL+A, Select All)
#58=+58 (FN+X -> CTRL+X, Cut)
#43=+43 (FN+C -> CTRL+C, Copy)
#56=+56 (FN+V -> CTRL+V, Paste)
Use WIN-UP as HOME, WIN-DOWN as END
&26=24 (WIN+UP -> HOME)
&27=23 (WIN+DOWN -> END)
=======================================
Have Fun! If all goes wrong, just soft-reset.
How does it work?
Can you tell me how this works? I'm an experienced software dev, but new to Windows Mobile programming.
Hi -- I am in the same boat as you; experienced developer, but very new to windows mobile and very rusty with C++. So, I may not be the best to learn from! but, at the core of things, we use a windows "hook" to grab keyboard messages before they are processed.
More info here:
http://msdn.microsoft.com/en-us/library/ms644990(VS.85).aspx
Hope that helps. I will also post my source code eventually.
Just try it but not working
MSG = warning Couldn't install hook... terminating
have any sugestion?
jsmith8858 said:
Here's a very simple key re-mapping app, Kwik-E-Map. Please try to forget my terrible, hacky first attempt, FuzeKeys, and don't hold that against me!
You can pretty much re-map anything except the HOME key at this point. This isn't a "hotkey" app launcher or anything fancy, just something simple to put CTRL and TAB keys on your FUZE, things like that.
Here's the scoop:
1) unzip the two files to a folder somewhere on your phone
2) run KwikEMap.exe.
That's it! It runs in the background, and currently maps the following:
CALENDAR --> CTRL
CONTACTS --> TAB
MESSAGING --> HOME
INTERNET --> END
? -- > CTRL (i.e., a nice Right-CTRL, to press CTRL-A, CTRL-Z, etc)
SHIFT-PERIOD --> ? (since we lost the ? key)
SHIFT-BACKSPACE --> ESC
4) In addition, pressing FN-PERIOD will bring up the "Kwik-E-Map" window, where you can close the application or test out some key presses to view key codes. (this key is re-mappable, see below)
It runs in the background, put a shortcut to it in your start-up if you like. It uses about 35K and I have not seen the CPU usage go above .5% (and that's when pressing all kinds of keys really quickly to see how high we can get it go!)
Don't like those key mappings? want to add more? See the key mappings in the KwikEMap.txt file. All of the info you need is there.
Final notes:
1) You can map the CAPS LOCK key to, say, TAB, but I cannot figure out how to not get it to affect the CAPS LOCK state. In other words, go ahead and map CAPS LOCK as TAB, it will work, but it will toggle capitals each time you press it. Also, CAPS LOCK always registers an "UP" event as soon as you press it, so it won't work well if you need to hold it down; e.g., to use it as a CTRL mapping.
2) You can map the windows key, but it still makes the start menu appear. You CAN map the windows key to "00" (see the .txt file) which will effectively disable the windows key normal operation (such as the start menu appearing) for any un-mapped keystrokes.
3) the order of mappings in the config file matters. If you map the "A" key to one thing, and then SHIFT-A to another, you'll never get the SHIFT-A mapping unless you list that one first.
4) to use the CALENDAR, INTERNET, etc, mappings, you need a ROM that let's you use the Buttons settings to map those keys, and map them to "Do Nothing". (most of the roms here have this feature added, I believe)
5) If you change the .txt mappings, you must stop and re-start the app.
6) If you re-execute the KwikEmap.exe file, the app's window will appear, allowing you to shut it down if you like.
7) A list of windows mobile key codes can be found here.
Everything is still in alpha test mode. The Fuze keyboard is funky, so there's no telling what will work and what won't, or what side effects you might encounter. USE AT YOUR OWN RISK. (However, the worst-case scenario is that you need to do a soft-reset to get back to normal).
Please let me know how it goes. It can and will be made more efficient, eventually, perhaps a better UI at some point, a CAB installer, etc.
Click to expand...
Click to collapse
I really think this app as potential but all i really want to to remap the the internet key to CTRL and it seems to work but it will also open the file.... example if i want to copy over pictures from a folder but the files are not next to each other i press the internet button and it will let me select three different pictures but will open them also so how do i get around that. hope i explained it correctly. thanks
irus said:
I really think this app as potential but all i really want to to remap the the internet key to CTRL and it seems to work but it will also open the file.... example if i want to copy over pictures from a folder but the files are not next to each other i press the internet button and it will let me select three different pictures but will open them also so how do i get around that. hope i explained it correctly. thanks
Click to expand...
Click to collapse
see "note #4" in my post. (which you quoted)
If you can't map those keys using the Buttons settings, then the easiest way is to map the "?" key as CTRL, and then simply map SHIFT-PERIOD (or something like that) to the Question mark. I don't think an extra keystroke for a question mark is a big deal if it gets you a nice CTRL key.
EDIT: I just re-read your post more carefully. I actually have no idea what you are asking.
jsmith8858 said:
Hi -- I am in the same boat as you; experienced developer, but very new to windows mobile and very rusty with C++. So, I may not be the best to learn from! but, at the core of things, we use a windows "hook" to grab keyboard messages before they are processed.
More info here:
http://msdn.microsoft.com/en-us/library/ms644990(VS.85).aspx
Hope that helps. I will also post my source code eventually.
Click to expand...
Click to collapse
Thanks, yes that helps. You may want to Google "Windows Mobile services.exe" - you can make this app run as a service so there isn't a window hanging around.
jsmith8858 said:
see "note #4" in my post. (which you quoted)
If you can't map those keys using the Buttons settings, then the easiest way is to map the "?" key as CTRL, and then simply map SHIFT-PERIOD (or something like that) to the Question mark. I don't think an extra keystroke for a question mark is a big deal if it gets you a nice CTRL key.
EDIT: I just re-read your post more carefully. I actually have no idea what you are asking.
Click to expand...
Click to collapse
sorry i will try to give a better example below
file1
file2
file3
file4
file5
so lets say im in total commander and i want to copy file 1, file 3, file 5 to a different directory. so i press and hold the internet button(which i have remapped as CTRL) and tap on file 1 which opens the document so i close out of the document and tap on file 3, so now file 1 and file 3 are highlighted(selected) so file 3 opens and i close out of file 3 and tap on file 5 which opens file 5 which i close out of and now i am in total commander with 3 files selected i can now tap & hold and select copy and it will copy. but i want to select the files with out them opening. i know i can change the options to double tap in total commander and that would fix the problem but i was just wondering if there might be another way. thanks hope this is better
irus said:
i know i can change the options to double tap in total commander and that would fix the problem but i was just wondering if there might be another way. thanks hope this is better
Click to expand...
Click to collapse
I think you gave yourself your own answer. I can't really give you Total Command support here in this thread, I have no idea. I just map the keys, I don't control how applications respond to them!
vizmaster said:
Just try it but not working
MSG = warning Couldn't install hook... terminating
have any sugestion?
Click to expand...
Click to collapse
hmmm, interesting. Are you using a Fuze or some other device? What ROM? Any info you can provide would be useful.
mhumphrey said:
Thanks, yes that helps. You may want to Google "Windows Mobile services.exe" - you can make this app run as a service so there isn't a window hanging around.
Click to expand...
Click to collapse
Absolutely. An item on the "to-do" list.
jsmith8858 said:
hmmm, interesting. Are you using a Fuze or some other device? What ROM? Any info you can provide would be useful.
Click to expand...
Click to collapse
I'M using a touch pro for Telus ROM 1.03.661 date 10/14/08
I tried a hard reset before still no luck
Doesn't seem to work for me. When I start the program, no window appears, and the key maps don't work, except for FN-period, which opens the window...
I'm using Rogers_Fuze_Rom_v2_2009_02_19 by digitalextremes, which is essentially RUU_Raphael_HTC_WWE_5.05.405.1_R_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship
I have a Fuze.
efrant said:
Doesn't seem to work for me. When I start the program, no window appears, and the key maps don't work, except for FN-period, which opens the window...
I'm using Rogers_Fuze_Rom_v2_2009_02_19 by digitalextremes, which is essentially RUU_Raphael_HTC_WWE_5.05.405.1_R_Radio_Signed_Raphael_52.58.25.30_1.11.25.01_Ship
I have a Fuze.
Click to expand...
Click to collapse
No window appears when the app starts.
Are you sure your key mappings are not working? Nothing really seems to happen for most of them, since they are keys like HOME, END, CTRL, etc -- you'd need an app open that uses those keys to see the effect.
For example, open up Word, and tell me what happens when you press the "?" key on your keyboard. Or, give me specific examples of what you tried, what you expected to happen, and what did happen instead. That info makes things much easier to troubleshoot rather than just saying things "don't work".
jsmith8858 said:
No window appears when the app starts.
Are you sure your key mappings are not working? Nothing really seems to happen for most of them, since they are keys like HOME, END, CTRL, etc -- you'd need an app open that uses those keys to see the effect.
For example, open up Word, and tell me what happens when you press the "?" key on your keyboard.
Click to expand...
Click to collapse
I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
efrant said:
I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
Click to expand...
Click to collapse
It runs in the background! It is designed to be used while the window is hidden. The app's keymappings are suspended when the window is open so it can show off the key codes and in case you have errors/problems with the mappings. Simply don't show the app's window (click HIDE if it is open already) and the key mappings should take effect.
EDIT: Also, as mentioned in the initial post, you cannot use the Calendar, Internet, etc, keys unless your ROM let's you map those keys to "None", otherwise the normal button action still occurs. So, you'd need to use ? for CTRL in that case, or define your own mappings using other keys.
jsmith8858 said:
It runs in the background! It is designed to be used while the window is hidden. The app's keymappings are suspended when the window is open so it can show off the key codes and in case you have errors/problems with the mappings. Simply don't show the app's window (click HIDE if it is open already) and the key mappings should take effect.
Click to expand...
Click to collapse
Sorry, my previous post should read as follows:
"I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then click on HIDE. I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
efrant said:
Sorry, my previous post should read as follows:
"I'll give you an example: I open Outlook and create a new message. I then open your app via File Explorer. I click on it again and see the window (just to make sure it is open). I then click on HIDE. I then type something in the body of the message, and highlight it. I push "Calendar"+B to bold it, but my calendar opens up...
Click to expand...
Click to collapse
See the EDIT in my previous post. And, tell me what happens when you press ? (question mark) plus "B". That should do what you want. (Assuming Outlook supports CTRL+B = bold)
A good one to test that's pretty universal is CTRL-A to select All. (i.e., works in File Explorer, Word, any text control, etc)
jsmith8858 said:
See the EDIT in my previous post. And, tell me what happens when you press ? (question mark) plus "B". That should do what you want. (Assuming Outlook supports CTRL+B = bold)
A good one to test that's pretty universal is CTRL-A to select All. (i.e., works in File Explorer, Word, any text control, etc)
Click to expand...
Click to collapse
Yes, CTRL is maped correctly to the ?-key. So it actually does work. My mistake. Except for the calendar, contacts, internet, etc. keys.
It's too bad that my ROM doesn't support mapping those keys to NONE. Is this something a chef can cook in?
efrant said:
It's too bad that my ROM doesn't support mapping those keys to NONE. Is this something a chef can cook in?
Click to expand...
Click to collapse
Yeah, it must be cooked in as far as I know, drivers and system files need to be replaced or updated as far as I know. NotATreoFan's ROM and I think Da_G's have this feature. I am trying to see if I can figure out a way around this, but no luck so far. I am going to see if I can "hook into" messages sent to the Keypad.dll and figure out if that works.

Can You Backup Wifi Settings?

I like to whipe periodically for that fresh g1 feel and smoothness, only reason I hate doing it is that I have to manually punch in my WEP code for the wifi over and over again. It's an annoyance I would love to get rid of. I've tried a few backup apps, none do it though. Anyone know of a specific app that does, or a way I can do it through term/adb? Any way?
I'm sure there is a way to pull the wifi settings data from the system somehow but I've actually found a gscript which I edited a little that goes through and calls the settings screen, turns on wifi, clicks on the topmost network available (assuming youre near the one you want to connect) and enters the WEP key as defined in the gscript code.
You may be able to find it in the 'useful gscipt' thread that was around on xda but if not, I can post mine (edited of course) as soon as my g1 gets done flashing the latest CM rom. :]
EDIT: Here you go put this in gscript or make an empty txt document, paste the following, edit the bold type to reflect your WEP key, save as setupwifi.sh file and run through terminal "sh setupwifi.sh"
***Requires root / 'su' *** either way you run it.
setupwifi.sh said:
am start -a android.intent.action.MAIN -n com.android.settings/com.android.settings.Settings
sleep 1
input keyevent 20
input keyevent 23
sleep 1
input keyevent 23
input keyevent 20
input keyevent 23
input keyevent 20
input keyevent 20
input keyevent 23
sleep 1
input text CHANGE THIS TO WHATEVER YOUR WEP KEY IS
input keyevent 20
input keyevent 20
input keyevent 21
input keyevent 23
input keyevent 3
Click to expand...
Click to collapse
Just make sure your wifi is turned off for the purpose of this script, since first thing it does is go to settings, clicks wireles, turns on wifi. If you had the wifi on and ran this script, it'll turn off and script will sort of go haywire. No damage but just it wont do what its inteded to do.
It's actually fun to watch your phone do things on it's own and press keys and all that. If you want more details on what each of the keyevent's do, just find the GScript thread and its all in there.
Hello! Sorry for bringing this thread back up. But, before anyone gets angry at me, I'm sorry in advance... I did use the search (trust me, I'm in love with it) and didn't have any luck finding anything other than this.
Anyways, just had a small question: let's say I don't know the wep key because my admin at work put it in for me (they wont share it) but I don't want to ask him every time I flash a rom for it again and again. So I was wondering if the script below would make my device pull the inputted wep key from the device and memorize it after every flash or does it only work if the wep key is inserted?
Is there maybe an app that can just backup data (including wifi wep keys)? or another script that shows you the currently inputted wep key on my device that my admin types in it?
When I had my blackberry the desktop manager backup system would save the wifi wepkeys, don't know why Google wont synchronize settings, data, apps, and wep keys but I guess to each it's own.
I have a T-mobile USA G1
Thank you.
prash said:
I'm sure there is a way to pull the wifi settings data from the system somehow but I've actually found a gscript which I edited a little that goes through and calls the settings screen, turns on wifi, clicks on the topmost network available (assuming youre near the one you want to connect) and enters the WEP key as defined in the gscript code.
You may be able to find it in the 'useful gscipt' thread that was around on xda but if not, I can post mine (edited of course) as soon as my g1 gets done flashing the latest CM rom. :]
EDIT: Here you go put this in gscript or make an empty txt document, paste the following, edit the bold type to reflect your WEP key, save as setupwifi.sh file and run through terminal "sh setupwifi.sh"
***Requires root / 'su' *** either way you run it.
Just make sure your wifi is turned off for the purpose of this script, since first thing it does is go to settings, clicks wireles, turns on wifi. If you had the wifi on and ran this script, it'll turn off and script will sort of go haywire. No damage but just it wont do what its inteded to do.
It's actually fun to watch your phone do things on it's own and press keys and all that. If you want more details on what each of the keyevent's do, just find the GScript thread and its all in there.
Click to expand...
Click to collapse
Wifi settings are located here:
Code:
/data/misc/wifi/wpa_supplicant.conf
Copy the .conf file to a safe place before you wipe and install a new ROM and then push it back using ADB or place it on your sdcard and push it back using terminal.
With this method, there is no way to see what the key is, but then again, you don't have to because once you push the file back, all your data is remembered.
DirectMatrix said:
Wifi settings are located here:
Code:
/data/misc/wifi/wpa_supplicant.conf
Copy the .conf file to a safe place before you wipe and install a new ROM and then push it back using ADB or place it on your sdcard and push it back using terminal.
With this method, there is no way to see what the key is, but then again, you don't have to because once you push the file back, all your data is remembered.
Click to expand...
Click to collapse
Just open wpa_supplicant.conf with notepad on PC and whoops your wep key is there.
Write it on paper and make tatoo of it on your leg
Edit:
Solution(s) witouth PC
Or open it with TxTPad Lite (free on market) directly on phone and read it
Upload wpa_supplicant.conf to dropbox with droidbox free

[Learn]Android mods.

Hey. On my Nokia 5800 there was some WYSIWYG apps to edit the files. Really simple and smooth to edit your phone.
I wounder if theres some app for the PC for android to be able to edit phone stuff. For example, I wanted to add a reboot option when I long press power button it shows the reboot thing.
Is there any program that makes me change those files(which files are they?) and so on?
Thanks, Nuno.
There isn't a unified single program to do everything. Most of the stuff you do by decompiling, editing, recompiling. Check this recopilation, best way to learn is to go ahead and try to do some of the stuff:
http://forum.xda-developers.com/showthread.php?t=1635108

Categories

Resources