Created
February 10, 2016 20:41
-
-
Save JFFail/4ff52297499ec130fcc2 to your computer and use it in GitHub Desktop.
VBScript for the laziest possible way to continuously re-run your last command in a shell.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Dim objShell | |
set objShell = CreateObject("WScript.Shell") | |
While true | |
objShell.AppActivate("powershell") | |
objShell.SendKeys "{Up}" | |
WScript.Sleep 200 | |
objShell.SendKeys "{Enter}" | |
WScript.Sleep 5000 | |
Wend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment