[DUG] Windows UI during Screensaver
Steve Peacocke
steve.peacocke at gmail.com
Fri Aug 3 11:06:29 NZST 2007
There is an article about that at...
http://www.latiumsoftware.com/en/pascal/0027.php#6
Steve
--
Steve Peacocke
http://stevepeacocke.blogspot.com/
On 03/08/07, John Bird <johnkbird at paradise.net.nz> wrote:
> So what is the best way to detect the screensaver is on? The best way I
> know so far is
>
>
> P:array[0..256] of Char;
> Title:string;
> ScreenSaverOn:Boolean:
> ..
>
> GetWindowText(GetActiveWindow,p,256);
> title:=p;
> if title='' then ScreenSaverOn:=true;
>
> Which is sort of indirect - the screensaver is the only window with a blank
> title text. It is possible to detect if the mouse and keyboard are idle,
> but that does not mean the screensaver has come on of course.
>
> Is there anything more direct to detect the screensaver?
>
> John
>
>
More information about the Delphi
mailing list