in reply to Checking that local Windows machine is idle

If your program is to be run while the computer is idle, why not simply set your perl script as the screensaver under Windows ?

A Win32 screensaver will be executed when the computer thinks so. For configuration, it will be started with the /c command line switch.

You can then either use your script as the screensaver or let your script run all the time and just let the screensaver program tell your script that it should now run.

  • Comment on Re: Checking that local Windows machine is idle