[DUG] Windows UI during Screensaver

John Bird johnkbird at paradise.net.nz
Fri Aug 3 18:40:22 NZST 2007


Hey that seems to work, thanks.

>From what I have found there is not a matching function to detect if one is
at the welcome/login screen, which often follows the screen saver....but
however - by good luck so far - it looks like I don't need to be able to
detect a locked screen.

(This was to detect out of date display for the Analogue Clock after the
screen saver comes off - now fixed, thanks to your feedback all.   It was
bugging me, pun intended).


John

-----Original Message-----
From: delphi-bounces at delphi.org.nz [mailto:delphi-bounces at delphi.org.nz] On
Behalf Of Conor Boyd
Sent: Friday, 3 August 2007 11:07 a.m.
To: NZ Borland Developers Group - Delphi List
Subject: RE: [DUG] Windows UI during Screensaver


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



More information about the Delphi mailing list