Skip to content

Instantly share code, notes, and snippets.

@valdergallo
Last active February 22, 2024 13:59
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 7 You must be signed in to fork a gist
  • 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
@VedanshMalviya36
Copy link

This Is A Matrix Code
VBS File

@mck1915195
Copy link

Or you can send NUMLOCK twice in each iteration. Thanks for this.

@Laicure
Copy link

Laicure commented Sep 19, 2023

You should know that this haxx also works as a real mouse/keyboard "jiggler".
It makes MS Teams' presence consistent! (only works on the app, not the web app)

No more auto-"away"!

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