-
-
Save Son0fSun/2e9136890d0fbe9113abfbda76765170 to your computer and use it in GitHub Desktop.
Script to make windows stop to sleep using VBscript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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