Skip to content

Instantly share code, notes, and snippets.

@valdergallo
valdergallo / noSleep.vbs
Last active June 24, 2024 02:28
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