Skip to content

Instantly share code, notes, and snippets.

@wafna
Created February 14, 2022 18:06
Show Gist options
  • Save wafna/4115fbfe7304f3fccc95aaec2eb54e8b to your computer and use it in GitHub Desktop.
Save wafna/4115fbfe7304f3fccc95aaec2eb54e8b to your computer and use it in GitHub Desktop.
Screen Up Windows
Set WshShell = WScript.CreateObject("WScript.Shell")
While true
WScript.sleep 300000
WshShell.SendKeys "{BREAK}"
Wend
@wafna
Copy link
Author

wafna commented Feb 14, 2022

Prevent screen lock by simulating pressing the break key every five minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment