Re: Sensing the monitor power status?




"Dean Roddey" <droddey@xxxxxxxxxxxxxxxx> wrote in message
news:OKCLOPi$GHA.4292@xxxxxxxxxxxxxxxxxxxxxxx
"David Jones" <ncic@xxxxxxxxxx> wrote in message
news:yTb2h.32445$Jt3.24360@xxxxxxxxxxxxxxx
Dean Roddey wrote:
To turn a monitor off, you can send a WM_SYSCOMMAND message for
SC_MONITORPOWER set to 2. It might be best to just use the timeout
setting in Power Management, though.


Thanks. Based on the 'you have to demonstrate your ignorance in public
before the search works' law of nature, I found that one just after I
posted. I was looking for something complicated and this incredibly simple
scenario was missed.

So what we need now is how to sense that the display is off, in such a way
that we know we can ignore the next click (since it's the one that caused
the system to wake up the display.)

Write a screensaver that does nothing other than post your app a message to
set a "screen off" flag?





.



Relevant Pages

  • Daiplay black when booting up
    ... When I boot up the machine, ... showing up, but instead, the display is black. ... Default Monitor was selected before) and whatever I do, ... a screensaver or background issue (the boss DID install ...
    (microsoft.public.windowsxp.general)
  • Re: How to get X Windows to stop blanking out
    ... | "screensaver" never activates ... Some number of minutes after mine blanks out, my monitor does the yellow light ... weather radar display full screen during stormy weather. ...
    (comp.os.linux.x)
  • Re: How to get X Windows to stop blanking out
    ... | "screensaver" never activates ... Some number of minutes after mine blanks out, my monitor does the yellow light ... weather radar display full screen during stormy weather. ...
    (comp.os.linux.x)
  • Re: Twinview Monitor Issues (Monitor #s and Resolution)
    ... Controls the relationship between the two display ... which monitor is the live one when the ... Whichever screen had the mouse gets the window except ... When I first set it up, the screensaver ...
    (Debian-User)
  • Re: Sensing the monitor power status?
    ... To turn a monitor off, you can send a WM_SYSCOMMAND message for ... It might be best to just use the timeout ... scenario was missed. ... So what we need now is how to sense that the display is off, ...
    (microsoft.public.win32.programmer.kernel)

Loading