Skip to content

Instantly share code, notes, and snippets.

@tuantm8
Created November 15, 2016 08:33
Show Gist options
  • Select an option

  • Save tuantm8/6db60a7c3df2e71f8ee6e87aa5717fce to your computer and use it in GitHub Desktop.

Select an option

Save tuantm8/6db60a7c3df2e71f8ee6e87aa5717fce to your computer and use it in GitHub Desktop.
Avoid Computer to sleep
Dim objResult
Set objShell = WScript.CreateObject("WScript.Shell")
i = 0
Do While i = 0
objResult = objShell.sendkeys("{NUMLOCK}{NUMLOCK}")
Wscript.Sleep (6000)
Loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment