Created
February 14, 2022 18:06
-
-
Save wafna/4115fbfe7304f3fccc95aaec2eb54e8b to your computer and use it in GitHub Desktop.
Screen Up Windows
This file contains hidden or 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 WshShell = WScript.CreateObject("WScript.Shell") | |
While true | |
WScript.sleep 300000 | |
WshShell.SendKeys "{BREAK}" | |
Wend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prevent screen lock by simulating pressing the break key every five minutes.