Problems Holding power button pressed
- From: "beemer" <beemer(antispam)@teleline.es>
- Date: Mon, 7 Nov 2005 16:25:38 +0100
I'm trying to "Hold" the power button pressed programatically in order to
light off the screen or "Real Power off" the PPC on WM5.0 if it is
selected.
The code is very simple:
if (SHRecognizeGesture(&shrg) == GN_CONTEXTMENU)
{
::keybd_event(VK_OFF, 0, 0, 0);
Sleep(3000);
// NOT KEY_UP
}
It recognizes the gesture, but the PPC powers off itself, not "light off" or
"Real Power of" is achieved. If I do manually the same thing it works OK.
What do you think that could be the problem?
.
- Follow-Ups:
- Re: Problems Holding power button pressed
- From: Ilya Manin
- Re: Problems Holding power button pressed
- Prev by Date: mapi
- Next by Date: Re: Overriding incoming call notification event response
- Previous by thread: mapi
- Next by thread: Re: Problems Holding power button pressed
- Index(es):
Relevant Pages
|