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 <[EMAIL PROTECTED]> 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 > > _______________________________________________ NZ Borland Developers Group - Delphi mailing list Post: [email protected] Admin: http://delphi.org.nz/mailman/listinfo/delphi Unsubscribe: send an email to [EMAIL PROTECTED] with Subject: unsubscribe
