Post Reply
tomer 2001-06-08 00:38
is there some utility that can do this? it would save power, prevent monitors deterioration and electromagnetic radiation.
i presume there`s a standard command that the video card send to the monitor. if that`s true, it does`nt sound that much of a problem to program.
|
Latts 2001-07-09 00:19
I would be interested in something similar also.
|
Ced 2001-07-17 22:07
Hi, i hope that it is the answer to your question but i'm not sure (because i'm french and my english is not very good). Try this:
#include
void main() { int OldTimeout;
//Get timeout in secondes SystemParametersInfo(SPI_GETPOWEROFFTIMEOUT, 0, &OldTimeout, 0); //Set new timeout to 1s. SystemParametersInfo(SPI_SETPOWEROFFTIMEOUT, 1, NULL, 0); //Activates the power-off phase of screen saving SystemParametersInfo(SPI_SETPOWEROFFACTIVE, 1, NULL, 0); //wait 10s Sleep(10000); //Deactivates the power-off phase of screen saving SystemParametersInfo(SPI_SETPOWEROFFACTIVE, 0, NULL, 0); //Restore the old timeout SystemParametersInfo(SPI_SETPOWEROFFTIMEOUT, OldTimeout, NULL, 0); }
|
Ced 2001-07-17 22:08
oups! the first line was: #include"windows.h"
|
Christian Studer 2001-07-18 07:24
This code puts all monitors on standby, instead of only selected ones.
Putting selected monitors on standby should be possible, but it is a bit more complicated (you need to write a driver to do it). I may add this feature to a future version of UltraMon, if I get it working.
Christian Studer www.realtimesoft.com
|
Post Reply
|