I was using a vbscript for a long time that would put the monitor into sleep mode. For some reason, the way it worked, it would remain running in the process monitor with multiple instances.
I finally got tired of that, and put together this little program. It is working good, and thought others may find it of use. No wrappers or other dll's are required, as this speaks directly to the user32.dll, the same .dll that windows uses when putting the monitor into sleep mode with the power settings option. It was written using AutoIt.
To control the monitor you simply pass it either "on" or "off" when it is ran:
"Monitor On-Off.exe Off" to turn the monitor off for instance.
(Simply pressing a key on the keyboard or moving the mouse brings it back out of sleep mode)
There are many uses for something like this:
- When I run my "good night", or "away" scripts, it puts the monitor to sleep.
- Using Home Seer, I have a motion sensor on the bottom of my computer chair. If the monitor is asleep, either by windows after a delay, or turned off from the script, when I roll the chair out to sit down, the monitor comes on automatically. I have it set through windows to go into sleep mode after 10 minutes of no activity with the mouse or keyboard.
This save's a bit of electricity, as well as having to turn the monitor on and off all the time.
You can download it HERE.
I finally got tired of that, and put together this little program. It is working good, and thought others may find it of use. No wrappers or other dll's are required, as this speaks directly to the user32.dll, the same .dll that windows uses when putting the monitor into sleep mode with the power settings option. It was written using AutoIt.
To control the monitor you simply pass it either "on" or "off" when it is ran:
"Monitor On-Off.exe Off" to turn the monitor off for instance.
(Simply pressing a key on the keyboard or moving the mouse brings it back out of sleep mode)
There are many uses for something like this:
- When I run my "good night", or "away" scripts, it puts the monitor to sleep.
- Using Home Seer, I have a motion sensor on the bottom of my computer chair. If the monitor is asleep, either by windows after a delay, or turned off from the script, when I roll the chair out to sit down, the monitor comes on automatically. I have it set through windows to go into sleep mode after 10 minutes of no activity with the mouse or keyboard.
This save's a bit of electricity, as well as having to turn the monitor on and off all the time.
You can download it HERE.