[DUG] Detecting screensaver

2009-06-09 Thread John Bird
Does anyone know a reliable way to detect if the screensaver is on? The way I have found references to on the web SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @ATScreenSaverOn, 0); Note this is documented as Windows 95 only, which I am guessing why it doesn't work (XP/Vista) The only

Re: [DUG] Detecting screensaver

2009-06-09 Thread Paul
: [DUG] Detecting screensaver Does anyone know a reliable way to detect if the screensaver is on? The way I have found references to on the web SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @ATScreenSaverOn, 0); Note this is documented as Windows 95 only, which I am guessing why

Re: [DUG] Detecting screensaver

2009-06-09 Thread John Bird
: Tuesday, June 09, 2009 7:30 AM Subject: [DUG] Detecting screensaver Does anyone know a reliable way to detect if the screensaver is on? The way I have found references to on the web SystemParametersInfo(SPI_GETSCREENSAVERRUNNING, 0, @ATScreenSaverOn, 0); Note this is documented as Windows

Re: [DUG] Detecting screensaver

2009-06-09 Thread Conor Boyd
: Wednesday, 10 June 2009 3:38 p.m. To: NZ Borland Developers Group - Delphi List Subject: Re: [DUG] Detecting screensaver I have seen that variant, but from what I saw this detects the screensaver is set, not that it is active? From the D7 win32 help: SPI_GETSCREENSAVEACTIVE Determines whether screen

Re: [DUG] Detecting screensaver

2009-06-09 Thread Conor Boyd
Borland Developers Group - Delphi List Subject: Re: [DUG] Detecting screensaver Wouldn't surprise me if the preview button doesn't exhibit the same behaviour. Screensavers have to be written to respond explicitly to being run in preview mode (they basically have to parent themselves to the window

Re: [DUG] Detecting screensaver

2009-06-09 Thread John Bird
not use this flag. Still stuck! John - Original Message - From: Conor Boyd conor.b...@trimble.co.nz To: NZ Borland Developers Group - Delphi List delphi@delphi.org.nz Sent: Wednesday, June 10, 2009 4:04 PM Subject: Re: [DUG] Detecting screensaver Wouldn't surprise me if the preview button

Re: [DUG] Detecting screensaver

2009-06-09 Thread Dave O'Brien
Group - Delphi List Subject: Re: [DUG] Detecting screensaver This time I let the screen saver kick in properly, the SystemParametersInfo(SPI_SCREENSAVERRUNNING does not work as far as I can see... I found more references http://www.answers.com/topic/systemparametersinfo SPI_SCREENSAVERRUNNING