Skip to content

Instantly share code, notes, and snippets.

@JFFail JFFail/up_arrow.vbs
Created Feb 10, 2016

What would you like to do?
VBScript for the laziest possible way to continuously re-run your last command in a shell.
Option Explicit
Dim objShell
set objShell = CreateObject("WScript.Shell")
While true
objShell.SendKeys "{Up}"
WScript.Sleep 200
objShell.SendKeys "{Enter}"
WScript.Sleep 5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.