Skip to content

Instantly share code, notes, and snippets.

View cl1ck's full-sized avatar

Michel Hofmann cl1ck

View GitHub Profile
@ereli
ereli / gist:a0faf53e417403df8863
Created April 9, 2015 10:15
prevent screensaver and workstation lockout - vbs script that presses the numlock key twice every 10 seconds
# ref: http://superuser.com/a/836346
Dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
i = 0
Do While i = 0
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")
Wscript.Sleep (10000)