RE: Blocking Screensaver from Appearing

Tech-Archive recommends: Fix windows errors by optimizing your registry



Good to hear! Glad to be able to help.

"Paul Smith" wrote:

> Mike,
>
> The registry approach works like a charm. Thanks again.
>
>
> "Mike S." wrote:
>
> > Paul,
> > I went through the same exercise a while back. Unfortunately,
> > programmatically moving the mouse won't do it. If you use a Group Policy to
> > set the screensaver I can tell you it's a semi-futile effort to try to
> > override that to any extent. My spec was to set the timeout, active flag,
> > start time, end time, etc.
> >
> > I ended up writing a .net service that checks a registry setting on a
> > periodic basis. If the setting was 1 the set it to 0. The registry key is
> > HKEY_Users\Software\Policies\Microsoft\Windows\Control
> > Panel\Desktop\ScreenSaveActive. Also note that if you are using a service
> > under the local system context, you'll need to iterate through all the logged
> > on users in the HKEY_USERS hive and set the \ScreenSaveActive bit
> > appropriately.
> >
> > If you're not using group policy for the screen saver there are api calls
> > you can make that are fairly simple.
> >
> > -Mike
> >
> > "Paul Smith" wrote:
> >
> > > I have been given an unusual task to create a Windows Service to do something
> > > periodically to make the screensaver timer reset. We have a general policy
> > > of locking computers automatically after 10 minutes of inactivity. This
> > > windows service would be used on some machines to prevent the lock from
> > > occurring every 10 minutes.
> > >
> > > I have tried to reposition the mouse pointer with the Cursor class in a
> > > service, but it does not work -- always sees the cursor at 0,0 and does not
> > > recognize a new position being set for it. I have also looked for something
> > > to directly reset the timer the screensaver uses, but have found nothing.
> > >
> > > If someone could suggest a straightforward way to capture the real mouse
> > > coordinates from a .NET Windows Service, so I can nudge the mouse to prevent
> > > the screensaver from appearing, or to directly reset the screensaver timer,
> > > that would be most helpful. We can not just set Windows properties (like
> > > screensaver to none), as we do not want users to be able to prevent the
> > > screensaver from appearing.
.



Relevant Pages

  • RE: Blocking Screensaver from Appearing
    ... If you're not using group policy for the screen saver there are api calls ... "Paul Smith" wrote: ... > I have been given an unusual task to create a Windows Service to do something ... > periodically to make the screensaver timer reset. ...
    (microsoft.public.dotnet.general)
  • Application as Service 3.0
    ... Application as Service is an advanced system utility which lets you ... not only to run any application program executable as Windows service ... - run on the desktop which you specify (screensaver, ... Download URL: http://www.application-as-service.com/downloads/applicationservice.exe ...
    (comp.software.shareware.announce)
  • RE: Blocking Screensaver from Appearing
    ... We are using a group policy, so I will approach it as resetting ... these registry keys. ... >> I have been given an unusual task to create a Windows Service to do something ... >> periodically to make the screensaver timer reset. ...
    (microsoft.public.dotnet.general)
  • RE: Blocking Screensaver from Appearing
    ... The registry approach works like a charm. ... >> I have been given an unusual task to create a Windows Service to do something ... >> periodically to make the screensaver timer reset. ... >> to directly reset the timer the screensaver uses, ...
    (microsoft.public.dotnet.general)
  • Re: Registry Changes Do Not Save
    ... possibly be reverting back to a previous configuration. ... AutoLogon main registry key: ... Screensaver password duration: ... When I leave the computer running and reboot, ...
    (microsoft.public.windowsxp.general)