I don't think you will find an applet or a script which will do this job. As Mohammad said you need to hook into Window APIs. The functions are described here:
http://msdn.microsoft.com/en-us/library/aa373195%28v=vs.85%29.aspx As you can see, the program you want will have to be a service running in the background, which has registered itself for power events and waits for the display off event. Here's a piece of source code which uses this function but this seems to be a part of an interactive program (which displays something on the screen) rather than a background service program: http://www.hanselman.com/blog/TheWeeklySourceCode8.aspx The blogger mentions CodePlex. Maybe you can find other source code which might help you. All the best in your search! On Tue, Dec 28, 2010 at 10:41 PM, Holophote <[email protected]> wrote: > I create scripts that automate all kinds of repetitive > processes. I'm not a programmer, but without scripts > I wouldn't have enough time to eat, sleep, etc! > > There are endless apps that will power your monitor up or > down. Some are set to work at a specific time, or after a > download completes. I need a little applet that responds > to Windows own power options. > > Let's say you set your monitor to turn off after 15 or 20 > minutes of system inactivity. The applet I'm searching > for would detect when the monitor is powered down and > run a simple command, like launching an executable or > a simulated key press. > > Among the blizzard of monitor apps there must be one > that will do the job. If it exists, I can't find it. > > Thanks guys. > > -- > You received this message because you are subscribed to the Google Groups > "Computer Tech Support" group. > To post to this group, send email to > [email protected]. > To unsubscribe from this group, send email to > [email protected]<computer-tech-support%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/computer-tech-support?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Computer Tech Support" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/computer-tech-support?hl=en.
