Skip to content

Instantly share code, notes, and snippets.

@valdergallo
Last active June 24, 2024 02:28
Show Gist options
  • Save valdergallo/0e05d9e0c90b7be77458 to your computer and use it in GitHub Desktop.
Save valdergallo/0e05d9e0c90b7be77458 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
@Laicure
Copy link

Laicure commented Jun 24, 2024

oh man, now I need to use something like this for MacOS 💀

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