Forum Discussion

MarkSchofer's avatar
MarkSchofer
Frequent Contributor
4 years ago

Programming Around A Screen Saver

I tried two different methodologies.

 

i have a routine that moves the mouse occasionally. Each loop in my process. I then call this simple routine.

==========================

def MoveMouse():
Sys.Desktop.MouseX = Sys.Desktop.MouseX + 1

========================

As well as 

Win32API.SystemParametersInfo(Win32API.SPI_SETSCREENSAVEACTIVE, False,"Null",0);

=======================

In theory they should work. They do not. I get no error.

 

    • MarkSchofer's avatar
      MarkSchofer
      Frequent Contributor

      Of course I do. I work for an Agency that controls that type of thing.

      • AlexKaras's avatar
        AlexKaras
        Champion Level 3

        Hi,

         

        What about direct registry edit (from the scheduled task?) to disable screensaver ?