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