Key mapping tool - released - Touch Cruise Android Development

Hi to all, i decide to release the keymapping tool for polaris (updated with vogue)
You need only python (2.6 tested )to run it.
it works on win/lin/mac.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Download it from here -> (save as)

reserved by me

Hi, l1q1d.
Interesting tool, but what should i do with the *.py file in Windows?
Should i install any additional software to open it?

just install python for windows http://www.python.org/

Thanks! this tool is way useful Everybody should know it.

meknb said:
just install python for windows http://www.python.org/
Click to expand...
Click to collapse
a little side-note:
use python 2.7, not the current/latest release 3.1, otherwise the script won't work (at least it did not on my pc )

Thanks for the answers.
Can confirm: working on pyton version 2.7, not working with version 3.1.2.

I am not sure what "Wake with" function is supposed to do. I took it like, when the screen in black and phone is locked on pressing a checked button will light the screen up. Is this how is supposed to work? For me it doesn't.

This is great..thanks!

Is there anything like this for the Kaiser?

if you prepare a photo like vogue or polarisfor kaiser i can add it.

gives an error when i try to save for the vogue:
Code:
File "C:\Users\Jace\Documents\androidtools\tools\keymapping.py", line 416, in
createscript
self.writevogue()
File "C:\Users\Jace\Documents\androidtools\tools\keymapping.py", line 334, in
writevogue
self.outputfile.write('key 158 '+self.centerframe.camerafirstop.get()+'\t'
+self.wakestatus(self.wakecamerafirst.get())+'\n')
AttributeError: Frame instance has no attribute 'camerafirstop'
and something similar with the polaris

Hi mate,
when using python 2.7, this error message shows up when saving androidupdate.tar:
Code:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\webdev\python\lib\lib-tk\Tkinter.py", line 1410, in __call__
return self.func(*args)
File "C:\_stuff\apps\ppc\android\keymapping.py", line 414, in createscript
self.writepolaris()
File "C:\_stuff\apps\ppc\android\keymapping.py", line 369, in writepolaris
self.outputfile.write('key 158 '+self.centerframe.backop.get()+'\t'+self.w
akestatus(self.wakegps.get())+'\n')
AttributeError: Frame instance has no attribute 'backop'
Is version 2.6 mandatory please?

I'm sorry, i forget to commit latest version. Try now.

how do I use this file?
just overwrite the file on my phone? how to do that? Thanks!

Apply android update using boot menu or bootscript generator

Works great now.
Thank you.

Hi how should I map the camera key in the Kaiser...there are also a couple of other keys (the two close to the focus wheel in the top left side of the phone) not listen in the Kaiser part. One is the other "ok" and the other is the "search" key.. wich in winMo I don't know what it does.. I think is intended to chat or something (there is a comics ballon on it)...
I'm looking around for a method for find the keycode on android but I can't find any working solution..maybe you should quickly point me in the right direction.
Look the dmesg after pressing the key is not giving any answer.. -.-
By the way it's a really great tool!
thanks

Hello! Found this thread and utility program very actual for me
I'm using HTC Diamond 2 with Android and want to remap "Power" and "End call" buttons. It is very natural to press Enc call after the conversation, but it is completely inconvenient to use it as power off... On the other hand, the top hardware button works as "Home" in Androd while it is designed to be "Power" as like on the original HTC Diamond and iPhone.
Is there any way to remap these keys functionalty in Android in a free way, say, to leave "End call" on the "End call" button, but move power off to top hardware "Power" button?
I'm new to Android, but a littlie familiar with linux, so I could edit config files if it is necessary. Thanks in advance!

You can change directly the keylayout file in your system
(find /system -name qwerty.kl)

Related

In need of a special task manager to my PDA..

Okey.
I got a Qtek S100 (or Magican, as you call it...).
I've been searching around för task managers that fits my needs, including this forum. I've tried the most popular, and some other, but haven't got jackpot yet.
All of the task managers I've tested works like this: Hit an icon with the pen (or finger...) and a menu pops up.
I want to press a hardware button, to make the menu open.
A long time ago I had such a program. I had it on both of my iPAQ models. A 3630, and a 3660.
On these models these program was attatched to the right buttons, se picture:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
I'm not sure what these programs where named, but now you've got a clue what I need.
Any idéas of programs?
Is it not possible for you to remap the buttons, I mapped the camera button on my xda 2 to execute tomtom for instance.
dont waste time trying to map the send/cancel button.
there is no way to map.
i have tried all the whole list of Mapping button program from pocketgear.
none able to do it
probably you want to download a program that has 2 functions in each hardware button
for example.
1. calendar (press one)
1. pocket word (press and hold)
2. contacts (press one)
2. pocket excel (press and hold)
so on...
there u go, you can launch 8 applications
The problem is not to execute a program, that I can do well. The problem is TO OPEN A MENU.
For instance, press a hardware button and the start menu opens...
But, I want a task bar, that I can open it's menu by pressing a hardware button.
the start menu is just like a launcher
i have no idea how to map the start menu to a button
anyway, let calculate the step
using finger to press start menu (only 1 move)
using finger to press hardware button (only 1 move)
since no solution, we have to face it
keithhiap said:
the start menu is just like a launcher
i have no idea how to map the start menu to a button
anyway, let calculate the step
using finger to press start menu (only 1 move)
using finger to press hardware button (only 1 move)
since no solution, we have to face it
Click to expand...
Click to collapse
...well, there was one program who could do that.. I'll be searching for it's name...
Hejko said:
...well, there was one program who could do that.. I'll be searching for it's name...
Click to expand...
Click to collapse
do you mean iTask??
buzz
I found "magic button" to be a useful task switcher - but I don't know a way of using it with the hardware buttons. I also use buttonMax - you can create a macro that taps the start menu and assign the macro to a hardware button. I use "program menu" as my start menu which supports hiararchial menus so you can have access to a large amount of apps using a couple of button presses.
http://www.pocketmax.net/buttonMax.htm
I have already tested before this question is asked.
the only thing that cannot be done (that how i feel), is by configuring the 'send' button to map to a program (such as photos contacts 1.0d)
urh.. this photos contacts is not the built in program, it is an external program
Hejko said:
Okey.
I got a Qtek S100 (or Magican, as you call it...).
I've been searching around för task managers that fits my needs, including this forum. I've tried the most popular, and some other, but haven't got jackpot yet.
All of the task managers I've tested works like this: Hit an icon with the pen (or finger...) and a menu pops up.
I want to press a hardware button, to make the menu open.
Click to expand...
Click to collapse
Try this:
http://www.handango.com/PlatformPro...ectionId=0&catalog=30&txtSearch=task+switcher
The application you (and us early starters) used is called iTask, written by Thumbs Up software. They released a stand-alone version with lots of extra features called GigaTask http://www.gigatask.com/.
Hope this helps.
snorbaard said:
The application you (and us early starters) used is called iTask, written by Thumbs Up software. They released a stand-alone version with lots of extra features called GigaTask http://www.gigatask.com/.
Hope this helps.
Click to expand...
Click to collapse
:shock:
Yeah... that's what i'm talking about.
Thay hav made a bit progress at the design since the iPAQ-versions... ;-)
Thanks a lot snorbaard!
Hejko said:
snorbaard said:
The application you (and us early starters) used is called iTask, written by Thumbs Up software. They released a stand-alone version with lots of extra features called GigaTask http://www.gigatask.com/.
Hope this helps.
Click to expand...
Click to collapse
:shock:
Yeah... that's what i'm talking about.
Thay hav made a bit progress at the design since the iPAQ-versions... ;-)
Thanks a lot snorbaard!
Click to expand...
Click to collapse
Update: Now I've found another one, and I like this one even better.
HandySwitch is the name..

Problem with button after installing Voice Command

Hi!
I have installed Voice Command and all was working great until first soft reset...
Something bad happens to harware button nr 4 (that with a bubble, next to
camera button). All functions mapped to this button are activated only
after holding that button for a few seconds. If you just tab that button -
nothing happens... If I uninstall VC - problem disapears...
I know that this is an old problem (even on WM5 after installing VC), but
I don't find any solution... And I know that there is a solution, becouse on ROMs
when VC is included, that button is working OK...
So dev's or anyone - pls share with me
I have compared 3 registry and files snaps, bout I don't find there
any solution... So if anyone can find what registry change is responsible
for that strange button behaviour, I'll be grateful...
So:
Result1.txt is compare of snaps taken before and after installation of VC
Result2.txt is compare of snaps taken after installation, but before and
after first soft-reset
It is easy to read - all lines starting with < are old values, and lines
starting with > are the modified/new ones...
Thx in advice! This will help not only me - but all the people who are
using VC
I have found an solution for this! OK, maybe this is not real solution
(still needs someone to find what registry change is responsible for this weird
button behaviour), this is more like backdoor for button problem, but it works
Now I have something like this:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
It looks great, huh? I don't remenber when I have possibility to map
all the button functions! (I think that in last official WM5 ROM)
OK, You need a registry editor, WM6 without Voice Command (I haven't
tested if this will work, when VC is build into ROM - besides, only with VC from here,
announce for incoming calls will work), Voice Command Fixed for WM6 and
offcourse HTC Universal
Note: This fix will work only if your "Record" button has been messed up
after isntalling VC!
After applying this fix, you will have to possibility to use Record button
as before installing VC, and you will have a new function - other action
mapped to Press & Hold for Record button!
1. Open you registry editor and navigate to: HKLM\Software\Microsoft\Shell\Keys
2. Find key 40C4 and rename it to 40C5
3. Create new key and mane it 40C4
4. Open key 40C5, copy all values from there to 40C4 key
5. Open 40C4 and change value of Name to "Record (Hold)", for example
You Keys key should look as here:
And it is done! Now in Settings -> Button windows all buttons
will be functional as before installing VC, and you have received
a bonus - a new action key to map
PS. I still search for a proper solution, why record button (40C4) has
transformed into 40C5 after isntalling VC! Pls, I know, that many
devs here know WM registry well - pls look at my compare results....
This will help a lot!
Thanks! I've been using KDSkamal's WM6 Beautiful Edition which is nice and fast but, among other minor things, didn't have the Record (Hold) button visible. Using your suggestion I was able to successfully restore and map it.
I tried this, and I get the announcements via handset speaker, but not over BT... Even after changing the configuration settings to use regardless of free time, and to use for BT all of the time and again to use BT if available... I did not have to use the VC BT Fix by Zajules after installing this... and BT worked as before...
We are closer, good work, but how did you get it to work over BT... Once we know that, Microsoft should compensate all that have worked to make this a reality... Just wish I was one of them... Ha...
Thanks Mr. Groch!
I was going to try this registry fix on my Mogul, but I already had 40C5 key, and didn't think I should try to rename another to this one.
Instead, I was able to just reassign the record button using AEButton Plus and it's working fine.
--Andrew

[Q] First WM 6.1 app (NEED HELP)

Hello everyone,
I am new at this forum and I am just starting to learn programming for pocket PCs, especialy for Xperia. I have a few questions, hope you can give me an answer for them. There they are:
1. What librararies are essential for "hello world" app?
2. I managed to create "hello world" with C# but it only works as an alert box, how to make a normal window with left and right buttons.
3. I have SDK 6.0, do I need to get 6.1?
4. What library has a command for normal text output (I.e. cout, print, wrinteln...) and how does it look like?
5. How do I know if my app I am developing needs .NET framework 3.5?
6. I don't have much time to read all topics, but if there are answers to any of my questions in them, please tell me where I can find them.
I am not sure if I am posting in the right place, so if I am wrong, please tell me.
http://wiki.xda-developers.com/index.php?pagename=Development Tools
it has alot of info
I can only find what software I need to develop, but I already have 2008 visual studio. Maybe you know another page where I could find simple code examples of using windows, messages, links and other codes.
try MSDN Libraries, they are VERY Helpful
I know but they are still very difficult for someone like me. Maybe someone can just answer my questions in the first post? I just need to have a basic window script for C#, instead of alert message box script that I have managed to write myself.
No, you do not need SDK 6.1 for that! I am still running on the SDK6 and I am using the WM5 Emulator - it works just fine.
There are no essential libraries for a HELLO WORLD application. All you have to do, is, to create a new PROJECT for smart devices in your prefered programming language. Select as type Windows Application (or however it is called in English - I am using the German VS2008, so, I am a bit unsure).
Below you will find a sample in VB2008 - sorry, I just prefer VB but you can easily convert the code to C#.
If you hit the left button, it will fill the text "HELLO WORLD" into a textbox control, if you hit the center button, the textbox control will be empty, if you hit the right button, you will get a messagebox with "HELLO WORLD!".
I hope that helps getting you started? For advanced questions I would suggest that you check out the MSDN Forums. Mostly, what works for desktop application works for smart devices too.
You will know if the app you're creating needs .NET3.5 if you select .NET3.5 while starting your project!
Pay attention when starting a new project, you will see a combobox at the top right where you can target a specific .NET FRAMEWORK. Simply select the .NET Version you want to use. I always select 2.0 - this is the most commonly used framework.
Thanks for your answers. Unfortunatly I get an error opening the file:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Maybe you can post code here? And how should I convert it? Using VS2008?
I guess you check your installation of VISUAL STUDIO 2008! It does not appear to me that you have the full VS2008 intsalled but the EXPRESS EDITION of C#.
The error you pictured above tells you already that you do not have VB2008 installed, therefore it can't open the project.
Visual Studio 2008 (commercial version - not EXPRESS EDITIONS) has build-in Development environment for smart devices, including PDA's. There are no additional libraries needed. Posting thye code here wouldn't make much sense since you only would see something like:
Code:
MessageBox.Show("Hello World", "Hello Sample")
You can open the Form1.vb and also the Form1.Designer.vb with any text editor, so, there is no need to repost the entire code here.
I prefer eVC£«£«.It's free.
Hello,
it has been quite a while, since I last wrote. I had abandoned developing for all that time. Recently I started to develope again, this time for real, I hope, and made a little progress. Now I have a very annoying problem. I want to add background image to my app, but I get error, that it can't be found.
Location of image:
C:\Documents and Settings\Martin\Desktop\Xperia\MMCalc\Properties\image.jpg
Reference to image:
Code:
backgroundImage = new Bitmap(@"\Program Files Folder\MMCalc\Properties\image.jpg");
Image is added to properties in visual studio and output file folder is:
Program Files Folder\MMCalc
Error:
{"Could not find a part of the path '\\Program Files Folder\\MMCalc\\Properties\\image.jpg'."}
I tried different paths many times, but all i got is that error, hope you can help me, since I couldn't find anything on google...

Problem with AutoKeyLock & Vito copy/paste...

Hi there,
I just discovered the AutoKeyLock program and immediately hit the problem with "Cannot hook the keyboard".
So I renamed my VitoCopyPaste.exe to .eze and rebooted.
This allowed AutoKeyLock to work.
Just out of interest, I renamed VitoCopyPaste back to .exe and it ran fine. So that suggests to me that both applications can co-exist as long as AutoKeyLock is started first.
So, 65000$ question, is there any way to control the startup order?
BTW I'm running Dr. Gonzo's WM 6.1 ROM on my Vox if that makes a difference?
TIA,
Richard
You can't use both apps on your vox, you must choose one or the other.
Sorry.
That's not true! I have them both working when I automatically start AutoScreenLock and manually start copy/paste.
I can see them both in task manager, Honestly!
If I knew how to take a screen shot, I'd post it.
R.
No, if autokeylock is launched first (screensaver active), vito copypaste don't work, if vito copypaste is launched first, autokeylock don't work.
It's a fact, only one soft can hook the keyboard.
Bye.
I am using "SmartToolkit 1.0.0.RC08" for: autokeylock, copy/paste and key mapping, ( "celle task" is mapped on center d-pad button).
OK Here's a screenshot from my phone showing both apps running:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Now do you believe me?
R
dicko99 said:
OK Here's a screenshot from my phone showing both apps running:
<snip picture>
Now do you believe me?
R
Click to expand...
Click to collapse
Believe you, yes that you can run both binaries at the same time.
The $65,001 question (which is what Fireburned is trying to say), is if both applications actually function when running together?
Running the two apps is ofcourse possible, but the beauty is they wont work simultaneousely . Its very simple, how can two apps lock the same hardware device? Think about it. You are using a dialup modem and are already connected to some network through it, now you start and another dialer and again want to use the same modem to dialup some other network, is it possible ?
Yes, they both work.
Shaunak.it, I don't know too much about Windows Mobile but in other OS's you have the concept of chaining where several programs can register an interest in a particular interrupt or device.
Thinking about it, WM must support something similar, otherwise how does the screenshot program see the * key pressed whilst both AutoKeyLock & Vito Copy & Paste are running?
Returning to my original question, is there any way to control the order that programs are started at boot time?
R.
dicko99 : I don't believe you, sorry
Phrak and shaunak.it : Thanks you, it's what i want to say, both applications can run simultany, but only the first launched app works.
Bye.
dicko99 said:
Yes, they both work.
Shaunak.it, I don't know too much about Windows Mobile but in other OS's you have the concept of chaining where several programs can register an interest in a particular interrupt or device.
Thinking about it, WM must support something similar, otherwise how does the screenshot program see the * key pressed whilst both AutoKeyLock & Vito Copy & Paste are running?
Returning to my original question, is there any way to control the order that programs are started at boot time?
R.
Click to expand...
Click to collapse
Yeah! the other program will get access to the device only after the first service let go of it's hold
Video proof
Enjoy!
try to make an sms text message and use vitocopypaste to select some words and cut/paste it somewhere else.
you will notice it doesn't work, because a carriage return is automatically inserted when keylock releases the hook to vitocopypaste.
B****r! I only tested copy/paste on a single line field...
Bye bye AutoKeyLock then!
R.
That's an old problem (not limited to the VOX) - long solved as well. Install Mobiion HookManager (free for personal use):
http://www.mobiion.com/downloads.html#hookmgr
Woo! It really works.
Thanks for the info.
R.
yes indeed!!!
great find

Key mapping tool - betatester needed

For all people that haven't seen i release a version here
OLD
Hi to all, as i announce i prepare a sinple tool to change key mapping, but before release i need someone to test it (i don't have much time).
I don't accept any other user to the group because only two submit some comments.
This is a screenshot:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
as bsg is totally written in python and it can run on win/lin/mac
This tool doesn't change the kernel. Produce a simple androidupdate so you can revert changes without flashing.
Reserved by me
Very cool...
Yeah... If you want I'm your man
Send me a PM.
Cheers.
l1q1d said:
Hi to all, as i announce i prepare a sinple tool to change key mapping, but before release i need someone to test it (i don't have much time).
So if you want to test it PM me. This is a screenshot:
as bsg is totally written in python and it can run on win/lin/mac
This tool doesn't change the kernel. Produce a simple androidupdate so you can revert changes without flashing.
Click to expand...
Click to collapse
willingly : )
pola100 with incubus Froyo rls11.
I can test if you want (Polaris100)
Add me
Thanks
Subscribe to this group and i post you the program...
I found this program really useful! Now I can configure each key to my likings. By the way, is there a manner of configuring the full press of the Camera button?
Did you flash latest kernel?
Feedback...
Hi,
I don't know how to post attachment in your social post (!), sorry...
What works :
- power for wake and wake-up
- call
- end-call, when your're in communication
- GPS : back
- explorer : menu
- long press power or end-call : options of phone
What doesn't works (with the configuration of tool) :
- long press call : search !
- when I see home, press end-call : wake !
- short press camera : home !
- long press camera : recent applications
And I think (if it's possible) you can make options for :
- long press end-call
- long press call
And I test the bootgenerator but impossible to generate the .sh file !!
Thank you, I hope that's help you for better tool.
Cheers.
i have update bsg try now...
Great!
Is it to say, we can use an app to config the key mapping?
Do you mean an android app?
that's a great idea liquid, i suscribe
thank you
Phone function and voicemail keypad mapping
Can this tool be used to remap the telephone keypad when the user accesses their voicemail so that the number keys show voicemail function terms like 'msg del', 'msg save', 'hear msg', 'msg replay', etc.
I don't know about other carriers but AT&T has the stupid voice prompting that tells the user what number to push to perform a function such as 'To delete this message press 7'. Wouldn't it be so much better to show under the 7 on the key instead of "PQRS' have it say 'msg del'.
I can't believe there's no android app already available that accomplishes this capability.
No, you need a program to do this
Hey this tool looks nice. It will be very usefull and from time to time the key mapping changes in some roms.
What is with the Voicerecord button? I got a pola200 and its on the top left above the volume button. Is this on a pola100 too? Or is it what you mean with camera second?
Another question: will it be possible to map a short and long press feature to each button?
Atm i use incubus froyo and on explorer button is settings on short press and keyboard on long press for example.. would be usefull for every button ;D
So good developing hope it will be finished soon and that you share this promising tool

Categories

Resources