Does anybody know how to detect that the power on the device has been
turned off and then turned on programatically in C++.
I would like to know how long it has been off, when it is back on.
RTFM. CeRunAppAtEvent
way number two
periodically check GetSystemPowerState(...)
#3, I've used the EV_POWER event on a comm port.
Thanks for the replies. I've solved my problem by adding some times to
the OnActivate function of the main window. If modals are active the same
code needed to be added to the OnActivate function of the modal.
Thanks again
Tony
Related
Just wondering if anyone knows or can quickly create a little applet (not java!) that can quickly switch the radio functionality of the XDAII? The manual clicking of that aerial icon is a pain. I guess the aerial functionality is probably accessing some DLL or something? Maybe it'd be a quick job?
Switching Radio off
According to my manual you're sposed to be able to press and hold the red phone button - the manual says this can be used to toggle the phone off/on but that certainly isn't the case on my phone?
Anyone know why this isn't working properly?
Manual's wrong... from previous forum postings, this can be done on the original XDA but this for some really weird reason doesn't work on the XDAII. Hence a request to some Pocket PC coders out there who might be able to whip a quick utility up?
what is wrong with clicking the signal level icon, and selecting 'flight mode' ?
clicking signal icon
that takes two clicks - it's a lot easier to press and hold a h/w button
I'm serious
I solved this problem in a nice way using ButtonMax 1.01. Now I can, not only turn radio on/off by simply keeping pressed the up/down key on my xda's pad, but as buttomax supports macros definition I could even let it put my pin in the phone as I turn the radio back on!
Using it toghter with Alarm Today allowed me to solve the problem of scheduled on/off too. Both programs run in team and you can use buttomax macros at a scheduled time, setting them as an alarmtoday event. :wink:
spicchio72 said:
I solved this problem in a nice way using ButtonMax 1.01. Now I can, not only turn radio on/off by simply keeping pressed the up/down key on my xda's pad, but as buttomax supports macros definition I could even let it put my pin in the phone as I turn the radio back on!
Using it toghter with Alarm Today allowed me to solve the problem of scheduled on/off too. Both programs run in team and you can use buttomax macros at a scheduled time, setting them as an alarmtoday event. :wink:
Click to expand...
Click to collapse
Very good idea, indeed. Thanks.
It's possible to use the "Record" button instead?
I tried to use the “Record” button in the ButtonMax, but nothing appends?
If I use the down pad key, it work’s, why?
Can you help me? I really want to use the Record Button, that way, I can switch off the Radio(Phone) with the PDA inside the case in bell clip.
Thank's,
Nuno Cardoso.
On my XV6600 I could change the reg key "flightmodeswitchbypnhendkey" then hold the phone end key to toggle the flight mode on and off. Is there a similar setup for the MDA?
Thanks
Not sure about your MDA.............
...............but on my XDA Mini S [HTC Wizard] WM5 and latest ROM - I just tap the phone signal icon to get a dialog box whixh includes a switch to Flight Mode..................
HTH
DB
Right but...
For some reason my MDA requires calibration regularly. I think it gets messed up switching modes (landscape to portrait). This coupled with my fat fingers causes much stress when trying to simply turn the phone on and off.
Thanks
bind the attached file to a hardware buton and it switches flight-mode on and off.
VJVolublis will do this and some other stuff.
V
Thank You all...
Is there a way to make buttons dual action push and hold buttons? IE push and hold call end button to execute the "tel.on-off_197.exe" file?
Thanks again everyone for your help.
try a search for AEBPlus or go to http:\\ae.inc.ru for download. You can use it without registering to try or register if you are happy with it, like I am.
Thank you all very much!
Works great! I appreciate all of your help.
Before I begin, yes I'm probably a relative newbie, yes I've searched the forum, and yes I've read the wiki.
I've got an 8525 running WM6 (thanks vp3G). I always use my phone in vibrate mode when I'm carrying it around, but I need to switch to audio when it is recharging (obviously I can't feel it when its plugged into the wall and sitting on the shelf). An old StarTAC phone of mine had a setting to toggle between vibrate and sound automatically when plugging in to power.
Is there anything like this for Windows Mobile, and specifically for the 8525? If there isn't, I may have to try to see if I can code this myself, but I thought I'd ask first...
Thanks for any help,
- ncdave
Try a search for Kyphur's Hold Comm Button Toggle program (or just "Kyphur", or other derivatives); it allows you to turn on/off the vibrate function by holding the comm button in once (to turn vibe on), then again to turn vibe off. Small pgm, works well, very little memory use. I know the search mechanism isn't perfect but even searching through the threads will work, which is how I found the program
Hope this helps
It sounds like your solution would be a profile switcher. There are programs out there that know to automatically switch profiles when you connect to the car/headset/usb/power...
■■Save the power when Talking(FreeTalk),save your power more and more■■
A sample program I programed,maybe it is usefull.
Program name:FreeTalk
Version:1.0
Public:Free to use
Author:BlackIIce
Date:10/10/2007
Request:A PPC with WM5 or WM6 Phone edition,need Microsoft .net2,for QVGA and VGA
Review:
FreeTalk,is a memory-resident program.when the user answers an incoming phone or when the other phone user answers the call,you can use this program to close screen or shutdown system automatic,when a call has ended,this program will close screen or shutdown system automatic too,not only free your hand,but also will save the power of your battery.
Because some number need you press some key to select a operation(for example press 1 for English,press 2 for German,and so on),so there is a function named "Except number list",when you dial the number in that list,the screen will keep open.
sorry for my pool english.
Howtouse:
1.Just copy the "FreeTalk" directory to main memory or Ramdisk(Advise: copy to storage card maybe get a wrong alert when start toghter with system)
2.make a shutcut to "FreeTalk.exe" in windows\startup
3.You can use "FreeTalkConfig.exe" in the "FreeTalk" directory to setup a action.
Oh thanks...I will try on my ATOM
I haven't tried your program yet, but I came across this idea in my mind earlier. It would be nice if it has some sort of delay mechanism built in such that it only turns the screen off after say 5 seconds of touchscreen inactivity from the point when the phone was picked up.
Also, after the screen's turned off, it can be turned back on during phone conversation by any hardware button.
That would be perfect. Just my 2 cents.
Very nice software.
It works fine on my trinity.
ww2250 said:
I haven't tried your program yet, but I came across this idea in my mind earlier. It would be nice if it has some sort of delay mechanism built in such that it only turns the screen off after say 5 seconds of touchscreen inactivity from the point when the phone was picked up.
Also, after the screen's turned off, it can be turned back on during phone conversation by any hardware button.
That would be perfect. Just my 2 cents.
Click to expand...
Click to collapse
turns the screen on during phone conversation by any hardware button is a good idea,I will add it in my next version.thanks a lot
is there an exe taht turns the screen on and off? and couldn't i just bind that to my camera button?
i did search..
thanks
You may be able to turn the screen off programatically, but how exactly would you expect to turn it on?
Of course, binding that to a button that actually works could do the trick. I think there a few freeware programs out there that allow you to change the bindings of the buttons (sry, can't remember a name, but if you google it you should be able to find one in no time).
On the other hand, phone off disables all buttons except the on/off button, so that might not work either.
i'm downloading vito button mapper now.
getting the screen to come back on was also my main concern. the only way i get it to come on now is by plugging it into the computer or resetting it. I don't always have a usb cable and a computer on hand, nor do i want to wait 5 min for my touch to restart to make a simple phone call.
any help would be GREATLY appreciated.. leaving for a trip in like an hour so i'd like to get this done..