Search code examples
vbscriptqtp

Anti-locking method in VB Scripting?


If system locks every 5 minutes, what VB Scripting method is used to avoid system locking every 5 minutes?


Solution

  • Save this file in the format of .vbs Change the Sleep Time 400 based on your requirement.

    Set wshShell =wscript.CreateObject("WScript.Shell")
    do
    wscript.sleep 400
    wshshell.sendkeys "{SCROLLLOCK}"
    wscript.sleep 400
    loop