Re: screensaver

From: Michele Simionato (mis6_at_pitt.edu)
Date: 11/13/03


Date: 13 Nov 2003 02:02:54 -0800


"Michael Geary" <Mike@DeleteThis.Geary.com> wrote in message news:<vr4064158pgsfb@corp.supernews.com>...
> Thomas Heller:
> > A google search for 'disable screensaver windows' turns up VB code,
> > which easily translates into this Python code:
> >
> > -----
> > import ctypes
> > SPI_SETSCREENSAVEACTIVE = 17
> >
> > def StartScreenSaver(on):
> > ctypes.windll.user32.SystemParametersInfoA(
> > SPI_SETSCREENSAVEACTIVE, on, None, 0)
> >
> > StartScreenSaver(1)
> > -----
> >
> > Unfortunately, it doesn't seem to work (for me, on XP. At least it has
> > no visible effect).
>
> Your StartScreenSaver() function should probably be called
> EnableScreenSaver(). Call it with a 0 parameter to disable the screen saver,
> or 1 to enable it.
>
> The function won't have any immediate visible effect--it simply enables or
> disables the screen saver, it doesn't start or stop it.
>
> Try setting your screen saver timeout to one minute. Let the computer sit
> for a minute to verify that the screen saver is working. Then call
> EnableScreenSaver(0) to disable the screen saver, and let the computer sit
> for a minute again to see if you've disabled it.
>
> -Mike

I have just installed ctypes and tried this solution. It works perfectly
well !;)
Thanks to everybody who helped here,

                   Michele



Relevant Pages

  • Re: screensaver
    ... > which easily translates into this Python code: ... EnableScreenSaver(). ... Call it with a 0 parameter to disable the screen saver, ... disables the screen saver, it doesn't start or stop it. ...
    (comp.lang.python)
  • RE: Idle lock coputer
    ... Do you have a value in the registry called EnableScreenSaver ... I wonder if the setting is in the wrong spot in the ADM template. ... Leave the rest of the screen saver GPOs set. ...
    (microsoft.public.windows.server.security)
  • Re: Is this possible, if so how?!
    ... Pressing the 3-finger salute disables user mode programs, ... you leave it enabled, key loggers can't read the password, and with it ... ctrl-alt-del to unlock their workstation when the screen saver kicks in. ...
    (microsoft.public.windows.server.sbs)
  • Re: Ideas on screen saver oddity
    ... key does not exist is not in my registry. ... the 'Password Protect' is NOT locked out. ... If this entry appears in the registry, the system disables the Password ... protected check box on the Screen Saver tab in Display in Control Panel, ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Screen Saver
    ... disables the Screen Saver section of the Screen Saver tab in Display in Control Panel. ... Also, this setting disables the drop-down list of screen savers on the Screen Saver tab in Display in Control Panel, which prevents users from changing the screen saver. ...
    (microsoft.public.win2000.group_policy)