Detecting if Screen-saver is active..?

Quote
Bjorn Heidarr Gudmundsson wrote:
>    Does anyone know how to detect if the a Screen-saver program is
> currently active?

    Well, you could trap messages. I think the message is SC_SCREENSAVE,
but another way you could do it is to disable the screensaver for the
duration of your program. So when your program starts up:

SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 0, nil,
SPIF_UPDATEINIFILE);

and when it closes:

SystemParametersInfo(SPI_SETSCREENSAVEACTIVE, 1, nil,
SPIF_UPDATEINIFILE);

That works for me, although it might not be a satisfactory solution for
you.

Cheers,
--
Marko Peric        lonew...@healey.com.au