Skip to content

Instantly share code, notes, and snippets.

@tartakynov
Last active January 9, 2017 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tartakynov/cfad3020cadd35e493cc3b2545ae0b84 to your computer and use it in GitHub Desktop.
Save tartakynov/cfad3020cadd35e493cc3b2545ae0b84 to your computer and use it in GitHub Desktop.
Prevent Windows lock
' put this script in Start / All Programs / Startup
Dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
i = 0
Do While i = 0
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")
Wscript.Sleep (6000)
Loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment