Screen saver

Could you provide a simple approach to block the screen saver and prevent the computer from locking.
I need this to run automation tests, and I do not have permission to change it on the local computer due to the global policy of locking computers.

+4
source share
2 answers

here mouseJiggler

Jiggler mouse is a very simple piece of software, the only function is to "fake" mouse input on Windows and move the mouse pointer back and forth.

It is useful to avoid a screen saver or other things triggered by inaction Detection

0
source

windows system? I did on Windows 2008 R2:

  • use notepad.exe to create c: \ temp \ idle.vbs
  • insert code Dim objResult Set objShell = WScript.CreateObject("WScript.Shell")
    i = 0; Do While i = 0 objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}") Wscript.Sleep (60000) Loop
    Dim objResult Set objShell = WScript.CreateObject("WScript.Shell")
    i = 0; Do While i = 0 objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}") Wscript.Sleep (60000) Loop
  • every 60 seconds, this script "click" numlock twice
  • run the script C:\Windows\System32\cscript.exe c:\temp\idle.vbs

Additonal you can create a new shortcut, insert a command line and set to "run minimized", camouflage the icon in Explorer or another.

0
source

Source: https://habr.com/ru/post/1384291/


All Articles