I am wondering how to detect if the screensaver is running or the system is in standby mode. The program I am developing has a timer that must stop if either of these happens.

Thanks, Mike