Turning off display of WindowsCE/PPC

  • Thread starter Thread starter Tod Johnson
  • Start date Start date
T

Tod Johnson

Hello,

is it possible to turn off the display of the device (not suspend)? I
need the mode that device could still process tasks but the display will
be turned off.

Thanks in advance,
Tod
 
The key word there is "the", as in "the device". No, there's no general way
to turn of the display of every device. Why do you think that you need
this?

Paul T.
 
Might work on some non-PPC devices, but not everything. Should work on PPC,
though.

Paul T.
 
Well, not entirely, but you could detect whether there's been any user
interaction with *your application*. You might use the ApplicationEx class
from OpenNETCF to do this by checking each Windows message as it arrives,
looking for anything that would be user-related (WM_CHAR, WM_KEYDOWN,
WM_KEYUP, WM_LBUTTONDOWN, WM_LBUTTONUP, WM_MOUSEMOVE, etc.)

Paul T.
 
Paul said:
Well, not entirely, but you could detect whether there's been any user
interaction with *your application*. You might use the ApplicationEx class
from OpenNETCF to do this by checking each Windows message as it arrives,
looking for anything that would be user-related (WM_CHAR, WM_KEYDOWN,
WM_KEYUP, WM_LBUTTONDOWN, WM_LBUTTONUP, WM_MOUSEMOVE, etc.)
Thank you Paul for the help. I've just wondering about another solution
something like global Hook... but as I see it's impossible or possible
only for keyboard events.

Thank you again,
Tod
 
There's no global hook for seeing mouse/touchscreen activity. You can only
get keyboard events. If you're building your own device, you can do
something else, but not on a commercial device.

Paul T.
 
Back
Top