View previous topic :: View next topic |
Author |
Message |
GregLand Valued Contributor
Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Tue Sep 09, 2014 1:34 pm Post subject: State of screen |
|
|
Hi everyone
Is there a way to know if screen is ON or OFF? |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Tue Sep 09, 2014 4:41 pm Post subject: |
|
|
I do not know of any way to do so. _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
GregLand Valued Contributor
Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Tue Sep 09, 2014 7:49 pm Post subject: |
|
|
I search an API but I find nothing... |
|
Back to top |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Sat Sep 13, 2014 5:21 pm Post subject: |
|
|
http://stackoverflow.com/questions/203355/is-there-any-way-to-detect-the-monitor-state-in-windows-on-or-off
"GetDevicePowerState sometimes works for monitors. If it's present, you can open the \\.\LCD device. Close it immediately after you've finished with it.
Essentially, you're out of luck -- there is no reliable way to detect the monitor power state, short of writing a device driver and filtering all of the power IRPs up and down the display driver chain. And that's not very reliable either."
answered Oct 15 '08 at 12:00
Roger Lipscombe |
|
Back to top |
|
|
Garrett Moderator Team
Joined: 04 Oct 2001 Posts: 2149 Location: A House
|
Posted: Sat Sep 13, 2014 5:39 pm Post subject: |
|
|
Man, I haven't been to stackoverflow in a long time, but that place is a great resource for all sorts of questions and information.
~Garrett _________________ 'What you do not want done to yourself, do not do to others.' - Confucius (550 b.c. to 479 b.c.) |
|
Back to top |
|
|
GregLand Valued Contributor
Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Sat Sep 13, 2014 10:43 pm Post subject: |
|
|
Could you help me to convert this is VDS script please?
I would like to execute a command when screen turn OFF and run an other command when screen turn ON. |
|
Back to top |
|
|
|