Here's a quick little Windows XP/Vista tray application that I made to disable the screensaver and standby modes.
It's actually quite hard to implement these things. No wonder VLC media player gets it wrong (and allows screen blanking during video playback).
Here are the things that I handled:
- You enable a screensaver while Standby Preventer is working. The screensaver remains disabled until you allow standby again.
- You have a configuration that allows screen blanking only when computer is on battery power (or only AC, etc). In this case, when you switch from AC to battery power, Windows does not inform applications that screen blanking has been enabled via the normal method. Standby Preventer correctly handles this.
A naive implementation might ignore the fact that the user could change their power settings (eg. disable the screensaver or screen blanking), and overwrite these settings with stored ones when allowing standby again. Standby Preventer goes through great pains to handle this.