Skip to content

Instantly share code, notes, and snippets.

@Son0fSun
Forked from valdergallo/noSleep.vbs
Created September 8, 2019 18:13
Show Gist options
  • Save Son0fSun/2e9136890d0fbe9113abfbda76765170 to your computer and use it in GitHub Desktop.
Save Son0fSun/2e9136890d0fbe9113abfbda76765170 to your computer and use it in GitHub Desktop.
Script to make windows stop to sleep using VBscript
set wsc = CreateObject("WScript.Shell")
Do
'Five minutes
WScript.Sleep(5*60*1000)
wsc.SendKeys("{NUMLOCK}")
Loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment