[DUG] CPU usage

Conor Boyd Conor.Boyd at trimble.co.nz
Fri Aug 21 12:56:57 NZST 2009


Not that tricky.

function IsScreenSaverActive: Boolean;
begin
  SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @Result, 0);
end; 

-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz]
On Behalf Of John Bird

1 - there is no reliable way I have found to detect when the screensaver
has actually started - if you know one please pass it on!



More information about the Delphi mailing list