wm6 remap power button? - Windows Mobile Development and Hacking General

is it posable to remap the power button? if so, i have a p4350 and what im trying to do is remap it so a single press would "lock" the device with slide2unlock and then slide2unlock turns the phone off after a min, then wakeup using the power button...
Can i do this?

yeah i would really like to know if this is possible, there's a sofware i need to map to this button.
thanks is advance.

This is something I need too, anyone have any solutions?

WM5NewMenu
perhaps with WM5NewMenu ? Some of the hardkeys you can change with this
tool, but i'm not sure if it is working with the power button
{
"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"
}
(somehow it's strange to remap the power button ?!
Cheers

i doubt it as the power button can turn a device on and off even if it have no rom and on mean being in bootloader mode and off mean well being off
doubt software can chance something as genericly hardware based like that

I did spend some time on this issue few months ago - but it seems that the user programs won't even receive an event for the button press of the power button at all.
I learned that it can be programatically prevent the OS from shutting down by the power button, but then, there's no way for any running program to learn the key press event...
I gave up on the power button and mapped my RED button to do the lock. But you may also try press and hold the power button - that's right, that will activate the "power off" dialog - but it generates a key press as well that you can make use of. I know it's not convenient, so that's what I got so far.

ww2250 said:
I did spend some time on this issue few months ago - but it seems that the user programs won't even receive an event for the button press of the power button at all.
I learned that it can be programatically prevent the OS from shutting down by the power button, but then, there's no way for any running program to learn the key press event...
Click to expand...
Click to collapse
Yes and no. Just I'm working on something like that. The only way to detect power button is to use SetWindowsHookEx.

Here is the thread on how to set hook on power button - http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=713754&SiteID=1

Try this
This page has all the hardware key remaps.
http://forum.xda-developers.com/archive/index.php/t-355141.html
Create a shortcut to S2U2 and rename it to Short_Power.lnk and put it in the windows dir of your device.

is there anyway we can create a shortcut to "power off" the device ?
EDIT then we will be able to assign it to another .lnk

Related

Hardware button for vibrate?

Hi guys,
on my K-Jam (Wizard) press and hold the Comm Manager button would turn the vibrate on and off. This does not work on the TyTn. Is there another button or solution?
Profiles
You can always go to comm manager and select vibe. But I found a more elegant solution, I assigned the comm manager hardware button to this:
http://www.pocketzenphone.net/PZPForum/index.php
Adding profiles is what I needed, can even control wifi and bt state...
It's perfert for one handed use.
Cheers
m
Or use the free one by Vijay.
http://www.vijay555.com/index.php?Releases:VJVolubilis
What I'm looking for is to do it by one button, not profile. Why can't I assign more actions to hardware buttons like press & hold?
Press and hold is a standard OS feature for WinMob. It has to be either application specific, or implemented with a 3rd party app like ButtonMax.
Why it's not a standard feature is a good question
V
vijay555 said:
Press and hold is a standard OS feature for WinMob. It has to be either application specific, or implemented with a 3rd party app like ButtonMax.
Why it's not a standard feature is a good question
V
Click to expand...
Click to collapse
Get a G-Smart i128... standard with that :-D
You and your lardy dar G-Smart i128. [I'm so jealous! ]
V
vijay555 said:
You and your lardy dar G-Smart i128. [I'm so jealous! ]
V
Click to expand...
Click to collapse
I've heard it'll be coming mainstream to the UK soon, so you'll be able to pick it up without having to pay the import tax... then I'll be the jealous one!
Unless you're on T-Mobile like me... won't get it for about 6 and a half years after the other networks have moved on!!!
One quick Q for you..... this has a mode where you push and hold the END key and it turns the flash on for torch feature, but it says "Please not use torch for a long time, press OK to turn off" do you know with research of your application what is a long time, and how long I can get away with without burning it out?
Cheers!! :-D
http://forum.xda-developers.com/viewtopic.php?t=52875&highlight=vjcandela
http://forum.xda-developers.com/viewtopic.php?t=51969&highlight=vjcandela
VJCandela can burn out the flash, as a few guys discovered. I rewrote it to force the flash off after what I considered a relatively short time, like 30 seconds. I wrote an override, but even then, I force it off after about 1 minute. I'd be careful of keeping it on for longer then bursts of a minute or two.
The LED is clearly not designed for sustained blasts.
{
"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"
}
V

powering off the device

Does anyone know if there is a free application that provides an icon on the Today screen to power off the device instead of having to hold down the power off button on top next to the card slot? I have an icon on the Today screen to soft reset. One to power off would be great!
Hotdog53
hotdog53 said:
Does anyone know if there is a free application that provides an icon on the Today screen to power off the device instead of having to hold down the power off button on top next to the card slot? I have an icon on the Today screen to soft reset. One to power off would be great!
Hotdog53
Click to expand...
Click to collapse
It is built into Faria's ROMs if you are using them (the little green thing in the icon bar).
--M
I have a Cingular 8125
I use psShutXP.
Dunno if it's free or not though.
It can put a little icon in the tray and then when you click it:
{
"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"
}
Where can I get this, and can I install directly via cab file?
link
yes link please
i really need something like this bcuz my power button wont even work :[
b.mann said:
yes link please
i really need something like this bcuz my power button wont even work :[
Click to expand...
Click to collapse
I don't see how this would benefit you because you still need to hold down the button to turn the power back on. This sounds like a hardware issue.
cool application....
hotdog53 said:
I don't see how this would benefit you because you still need to hold down the button to turn the power back on. This sounds like a hardware issue.
Click to expand...
Click to collapse
true...but that's what i take my battery out for
and it is a hardware issue, i just dont know where to get it fixed
Oooh, I'm sorry you have to do all this! If the device is still under warranty, the mfg. should ffix it. By the way, I found a cab file from pda gold website called "power off", installed it to my device, and made the mistake of copying the file to windows/start-up in file explorer as a shortcut. Doing this stopped my device from starting so I had to do a hard reset. Since my device would not start, the only way I could hard reset (for those who had the same problem) was to press the comm manager button, the voice record button, and sticking the stylus in the reset hole at the same time (not an easy task), release the buttons and stylus, and then press the green arrow (send) button. This sends a message telling the mfg. to set the device back to factory settings. I got this info from tech support at Cingular.
GldRush98 said:
I use psShutXP.
Dunno if it's free or not though.
It can put a little icon in the tray and then when you click it:
Click to expand...
Click to collapse
I found psShutXP @ PDA GOLD.COM..but mine says SHUT DOWN instead of TURN OFF. My screen just turns black & I can still see everything thru the dark screen. I want something to completely turn the device off. Yes this is free software.
yea...its not under warranty i think there is somewhere i can go to get it fixed, just dont wanna have to shell out alot of $$$ to get it done

Run command built into WM6...did anyone know about this?

Windows Mobile touch screen devices have a “Run” option that lets you start a program by entering its executable file name. For example, if you wanted to use Run to start Internet Explorer Mobile, you would follow these steps:
1. Press and hold down on the center key of your D-pad and then tap and hold on the time display in the upper right corner of the screen. Then release the D-pad button. A small pop-up menu appears displaying two options: Run and Clock.
2. Select the Run option and the Run dialog box appears.
3. Enter the name of Internet Explorer’s executable file (“iexplore.exe”) into the box labeled “Open.”
4. Press the OK button and Internet Explorer should start up.
Thats a good find, Serf. Probably faster for executing some commands than browsing the windows folder.
Wow, this is perfect for running programs with options. I had to download Resco file explorer just to run DMRouter.exe with an option to do the aGPS hack. This will doing it on my friend's phones much faster.
That was a GEM of a find! I can now run the ESPT app whenever I need to look at my profile.... not that I ever need to but that's NICE!
Thanks for posting this! I accidentally did the proper sequence to bring up the run box once, and didn't remember how I actually did it... was never able to replicate it.
Awesome! Did you figure this out by accident?
segadc said:
Awesome! Did you figure this out by accident?
Click to expand...
Click to collapse
Does finding the right answer through Google count as an accident?
I needed to bring up DMRouter.exe and didn't want to install a new proggy, glad it helped more than just me.
learned something new for the day. I met my quota.
BUMP
bump...
Some people were asking me how to do this.
Windows Mobile Classic and Professional can 'Run Dialog';
!!! The ‘Action’ key is usually the center of the D-Pad or CTRL if you are using the former SIP emulator;
{
"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's just a picture, I don't have this 'skin', I am still looking for it though ).
!!! As an additional tip, did you know that if you tap and hold without the ‘Action’ key being pressed, a different popup menu will appear? This one allowing you to select between an analogue ~ and digital clock being displayed on the navbar!
Senax

Lock the screen after dialing a call

Hi all,
Is there a way to lock the screen after making a call? Obviously you can't hold down the end key (or at least I can't) without hanging up the call and I have AE Button set up to screen lock with a two press of the volume up button but when I do that, the volume just adjusts. Any ideas?
Thanks,
Ho'okani
Here!! You need!!
{
"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"
}
Link App:
Hookani said:
Hi all,
Is there a way to lock the screen after making a call? Obviously you can't hold down the end key (or at least I can't) without hanging up the call and I have AE Button set up to screen lock with a two press of the volume up button but when I do that, the volume just adjusts. Any ideas?
Thanks,
Ho'okani
Click to expand...
Click to collapse
are you looking to disable the display so you don't launch programs with your face? if so, consider using a quick press of the power button to turn off the display screen.
are you looking to disable the display so you don't launch programs with your face? if so, consider using a quick press of the power button to turn off the display screen.
Click to expand...
Click to collapse
Actually what happens is when I use my bluetooth, I'll dial the number then turn off the screen (with the power button) and put the HD back into the case. When the call finishes, the screen will come back on and that's when I'll sometimes get misc. screen touches.
Thanks,
Ho'okani
Hookani said:
Actually what happens is when I use my bluetooth, I'll dial the number then turn off the screen (with the power button) and put the HD back into the case. When the call finishes, the screen will come back on and that's when I'll sometimes get misc. screen touches.
Thanks,
Ho'okani
Click to expand...
Click to collapse
ok... the above scenario is a little different than described in your original post. now i understand the need for a different solution.

any 3 finger salute reboot for hd2?

is there any way to 3 finger salute hd2? so you dont have to pull battery when os is freezing
reson is i use otterbox defender, and softreset button or pull battery when os freezing is a really tedious and tiring process
help please, maybe there is any hidden hardbutton combination to softreset?
or maybe anyone could make or mod it?
This is the only solution I've found:
{
"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"
}
Cool! Is there any special reason for such a huge hole? It just seems to me that a 1mm hole should be sufficient.
By the way, I've also made two 1mm holes in the otter box defender's left bottom plastic stud (the mic opening is in the right one) - they hold a lanyard perfectly (will make an image and post in a new thread soon).
If you are using android press the volume up+down+power button
Right, but don't try that with WM, it's for factory reset (all you data will be gone).
Hmm! May be it's really possible with custom ROMS and/or boot loaders then?
If the OS freezes then NO software will be running, therefore it is not possible to do what the OP is asking.
But what about the factory reset? If it will work, perhaps it can be intercepted?
Factory reset means hard reset, which is powering off the device and holding both volume buttons down whilst powering it back up - that can't be done through software if the OS is frozen. The only way to do that would be to press the reset button or remove/replace the battery.
There is literally 100% no way to power off or reset the device through software, if the OS if frozen.
Well, sometimes it's hard to tell if that's the entire OS is frozen, or just some software is too hungry for resources. I had an issue with the Core Player (TCPMP) freezing, which was blocking all the buttons and the screen taps together, but sometimes unfreeze them for a moment and go through the keypress events queue for a couple of steps. So the events were registered anyway. That happened only 3 times in 15 minutes, so I had to reset the device... The point is - a reset combination handled at the lowest OS level might be of a great help.

Categories

Resources