Selective Button Activation? - Windows Mobile Development and Hacking General

I have a Panda (HTC P6300). I'd like to be able to lock all the buttons during power off except the Mail (#2), and Explorer (#3) buttons on the front top of the device. Or barring that enable one of those to act in the same way as the power button, while the Button Lock feature is enabled.
Has such a hack for a WM5 device been accomplished?
Thanks!

Related

HW keys remapping

Is any useful way to remap the Green and Red Phone button and the volume slider button? I mean for launch application or any function. Thanx.
There are some such programs for volume slider.
The most simple I prefer is attached here.
Just put it to the \Windows\Startup folder. It just "unbind" slider but not remaps it to another buttons. This will allow to use slider as F6/F7 buttons in programs able to hook them e.g. Haali Reader...
Thanx
It seems to be ok but where did you attach it? On my MDA is no offered file to download at this time. ThankU.
I've got it
Ok. Now is the sheet with uploaded file appeared. I've got it and extracted it. After i run the *.exe file it does nothing. Why?
because it should do nothing
This utility just frees slider buttons from default binding to volume control.
If you have an application that understands F6/F7 hardware key pressings (slider up/slider down) you may bind these key in the program.
As for me - I use them to scroll text up and down in Haali Reader text reader program.
But (as I said above) there are another programs to use slider up/down control. Unfortunately I don't remeber where I saw these utilities - but they really exists
And, as far as I'm back to the Andes from (Blue Angel) - I think I will write another one specially for Himalaya/Andes.
Ok, let's wait some days. If there are any results - I'll post the report here
P.S.: BlueAngel is the best HW keys equipped device i've ever saw But...
Thanx once again
Thank you 4 ur help. Now i understand that. And what about the Phone buttons? Any ideas? Ex.I want to use red button as Ok/Close simulation. Any ideas how to do that? Thanks.
Nobody unmaps phone buttons. It is possible but unresonable because of HTC is a phone device also. But I'll implement this feature too.
OK
I will wait for it.
The very first (and buggy) try of HW remapping utility is done. The application setup is available HERE
After installing .CAB file go to Start -> Settings -> Buttons and see the changes...
DO NOT INSTALL THIS APPLICATION ON BLUE ANGEL!!!
It will hide four lower hardware buttons until hard reset!
1. This app was tested on Andes with WM2003se, but should work on Himalaya/Magican with WM2003 and above
2. You will lose the possibility to use hardware key mapping in other applications forl remapped buttons. I need to re-grab buttons from time to time because the system tries to thieve them from me
3. Currently I don't now how to emulate green and reed buttons functionality after unbinding them from the system.
4. I can count any number of button pressings (3,4,5...), but -
5. WinCE reserve codes for only 15 hardware buttons (40C1..40CF)
There are some ideas for future improvement. But it would be nice to know your thoughts.
Just to "stimulate": I can create settings screen during setup to allow flexible configuration where you will
- choose which buttons to handle and how many key pressings to detect;
- choose option to unbind and/or re-map volume and phone buttons
- ???
And let me take a time-brake for 2 days before next programming session
The utility is ready. It allows you to:
remap each standard hardware button to 2 or 3 "virtual", simulated via double or triple clicks;
use volume slider to simulate Up/Down direction keys or create additional "virtual" hardware buttons;
remap Red and Green phone buttons to 1,2 or 3 hardware buttons each.
In a result you may create up to 15 hardware buttons (system limit)
Just install program and check Start -> Settings -> Buttons.
Here is Oficial AEBPlus home page, full desktop-based setup (~27K) and Direct link to CAB file (~30K)
Well done!
Excellent software! Thank you once again for your work. Works very very well!
man this is great really like it
works perfect :lol:
Seems to work great. Haven't had it running long enough to see if the camera button will get stolen back (big problem for me on XDA IIi), but being able to map the volume is great.
In the next version any chance of adding an <enter> option like Vito Button Mapper which I think just sends a <carriage return> to select whatever is highlighted.
Is "<Ok/Close>" option in button settings applet not the same?
NO, <OK/Close> generally tends to close the current window rather than selecting whatever is highlighted.
Also whatever application keeps on stealing back the camera button is still doing it. I don't know if it is part of the UK O2 customisations or the core PocketPC Rom, but eventually whatever function is mapped to the Camera button gets re-mapped back to the camera. This also happened to me with the standard button mapper and Vito button manager. It's a little annoying since the camera button is the most usefully positioned, and it is also easily knocked, starting the camera at awkward times.
Ok, I'll add this option for camera button (a bit later, in a case other suggestions arrives).
As for the re-hooking button by camera application: AEBPlus initializes all of the buttons from time to time. Currently this take place every 30 seconds. So if you will wait a bit - all buttons should be re-grabbed again
This does not seem to help because whatever application that is resetting the camera does it in the same place as you are storing the button mappings. When I go into the Buttons Setup it will now say that the Camera button is mapped to the Camera.
Yes,I see... It looks like Camera application is a pushy application . The solution is to remap "normal" Camera HW button to 3 press instead of one, but I don't like this.
Anyway - utility was released.
New features: added option to emulate Enter key with Camera button.
Hi AE, your utility is great. It is very useful but SIMPLE and SMALL.
I used it instead of other button mapper software.
There're some issues need tobe improved:
1) Mapping "Green" and "Red" button:
Enable mapping when they're iddle only (phone function does not work).
E.g: I'd like using Red button to close running app. But in phone function, Red button is still used to hang-up the phone as original its function. Anytime I have a phone call, I can use Red button to cancel a outgoing/incoming call.
You can refer the program of mamaich in this web site.
2) Single press is too low:
I press a key one time and wait 5 secs or more until it works. It's too slow. Can you improve? Double-press is OK.
3) Press n hold:
Can you add "single press n hold" for all hardware-keys? I think "single press n hold (after 3-3.5 secs)" is more convenient than "double press" or "tribble press". Do you think so?
Hi AE, very usefull application! Is there any way that we can have an options screen, where we can change the key options we get after installing the app? That would be easier to edit our preferences if we want to make changes to our initial choices. Furthermore I added a Mortbutton to one of your simulated hard keys. Each Mortbutton can show a list of 12 apps for a buttonpress. That means That I can now bind more than 60 apps to the buttons in total! Very good for one-handed use of my Magician, thanks!

Button mapping/pda case problem

I've tried several pouches/cases, and keep having the same problem when a call comes in and I go to pull the phone out of the case, the Messaging or PIE button get pressed inadvertantly.
So the best fix I can come up with, is to remap the buttons to activate those apps on a Press & hold, rather than just press. Problem, is that the Hermes does not allow me to map Press & hold for any of the buttons except the PTT (via PTTFix - thanks Sleuth255).
My understanding is that the Button press versus press&hold functionality is implemented in the OS, so there's got to be a way to get to it?
That's incorrect AFAIK. The record button has press and hold, but it's emulated in code.
I don't think Press and Hold is implemented in the OS. I imagine Sleuth's solution is also externally emulated and parsed back into the OS.
V
Thanks.
I'm playing with an eval of AEButton, and it seems to do everything I was looking for (and then some).

press & hold a button to unlock?

I was messing around the button settings, and it seems like the the only button that can do "press and hold" is button 5.
what I would like to do is program the side "ok" button to press to lock, press and hold to unlock. Any registry gurus or savvy hackers here know if this is possible?
TIA
The Mogul comes with the option of using the power button as a "lock" for the other buttons. You can choose when the device is off to only respond to the power button being pressed.
I think what he is looking for is a button method of initiating the "device lock" application that can be added to the Today screen.
The problem with just using the power button is that if you accidentally press the power button then all the other buttons and screen will work. He's trying to actualy lock the device with a button.
you are almost right ebmorgan, except that you CAN map a button to <lock device> under settings-->buttons, but you CANNOT map a button or map the press and hold button to <unlock device>.
I tried AE button plus, it gave me a lot more options button wise, but still doesn't have a <unlock device> function built in.
My bad....I didn't notice you said "unlock". I was think of locking.
spb software makes a program called "SPB Mobile Shell" and can be found here http://www.spbsoftwarehouse.com/products/mobileshell/?en
This does exactly what you want! The left softkey will lock the device, and the right softkey will unlock it, instead of hitting cancel on screen or the * key.
Although i run this program, but not this option, is because of the "now screen." Which comes up no matter what, when you wake up the device or unlock it, which kinda sucks for what i want.
anyhow, if it's cool for you, then get it and enjoy!
go into the Now screen settings in mobile shell. You can uncheck display now screen box.
The question remains... is there a way to map a program to the "ok" key on the side of the Titan? It really doesn't do anything and its not in the button options. It would also be nice to have the hold option available to the other keys.
Yep, you can uncheck the display now screen box, but then you won't be able to make the right soft key unlock the device, it goes back to "press cancel or *"
starrbri said:
go into the Now screen settings in mobile shell. You can uncheck display now screen box.
Click to expand...
Click to collapse
Me too! I'm looking for a tweak that will unlock my device by press-and-holding a button. The default 2-step unlock of Windows-Mobile is so annoying especially during bright outdoors.
S2u2 doesn't work for me because you need to swipe the screen to unlock which is bad for less sensitive screens. And it doesn't have transparency so it covers the current app.

Device lock - am I blind?

For the life of me I can't find the device lock in settings, you know the one that gives you the option to lock all buttons except power button on device lock.
I would like to be able to turn the machine on by pressing something other than the power button but it seems it cannot be done.
Am I missing something?
cojones said:
For the life of me I can't find the device lock in settings, you know the one that gives you the option to lock all buttons except power button on device lock.
I would like to be able to turn the machine on by pressing something other than the power button but it seems it cannot be done.
Am I missing something?
Click to expand...
Click to collapse
I have managed to use the HTC lock but don't know how i did it. I do think that a good lock would be a plus for this phone.
donbronzi said:
I have managed to use the HTC lock but don't know how i did it. I do think that a good lock would be a plus for this phone.
Click to expand...
Click to collapse
What do you mean by 'HTC lock'? Where did you find this on the HD? I'm looking for the setting where you specify whether you want to lock all buttons or not?
In Settings > Buttons, go to the End Key tab and select the action you want when holding the End key. You can mae it pop up a menu if you want...
One of the options is Lock device.
AFW said:
In Settings > Buttons, go to the End Key tab and select the action you want when holding the End key. You can mae it pop up a menu if you want...
One of the options is Lock device.
Click to expand...
Click to collapse
hmm, yes, i found this but that is to lock the device using the long press end key.
What I am looking for is the setting where (at least on the diamond) you specify that the device locks all the buttons a) all the time b) none of the time or c) only when device is locked. i'm sure it was called button lock or similar.
That´s my problem, too. I would like to power on my HTC by using the volume buttons because the "power on" button is so small. Too small for my fingers
This = power on the HTC by using the volume button = is a possible option on the HTC Kaiser und Diamond.
Another question: Does a registry key for the button lock exist?
Thanks in advance

Key lock idea - Black me 1.4

The program "Black me 1.4" seems to be able to lock all keys and leave the D-pad (round center key) unlocked. You can turn on the screen by clicking the D-pad but the only thing is that you always have to close your application's screen every time. Is there a way to not get the the programs screen every time you click on the D-pad to turn it on?
And maybe with this feature of being able to disable all keys with the exception of the D-pad, this could be a great idea for creating a Selective key lock. On WM, under Settings, you can find "Key lock" and then you only have 3 options:
1) Lock all buttons except Power button
2) Lock (all) buttons if device is locked
3) Do not lock buttons
Maybe you can add the option of: Lock all buttons except D-pad and Power button.
That could be cool
Also the volume up and down could be added as exceptions, so if you have it in your pocket you can silence it without having to turn it on and then nobody sees you do that.
Thank you!

Categories

Resources