Press the Down Arrow key (or any other key)



  • You could use this to advance your Powerpoint slides for instance, if you had something like this setup.

    Save this text to c:\scripts\key.vbs:

    Dim Wsh
    Set Wsh = Wscript.CreateObject("Wscript.Shell")
    Wsh.SendKeys "{" + WScript.Arguments.Item(0) +"}"
    

    Then create a command that runs this:

    wscript c:\scripts\key.vbs down
    

    You could also make a batch file script that types things like this:

    wscript d:\scripts\key.vbs T
    wscript d:\scripts\key.vbs R
    wscript d:\scripts\key.vbs I
    wscript d:\scripts\key.vbs G
    wscript d:\scripts\key.vbs G
    wscript d:\scripts\key.vbs E
    wscript d:\scripts\key.vbs R
    wscript d:\scripts\key.vbs c
    wscript d:\scripts\key.vbs m
    wscript d:\scripts\key.vbs d
    

    Or you could use a vbs script like this:

    Dim Wsh
    Set Wsh = Wscript.CreateObject("Wscript.Shell")
    Wsh.SendKeys "{T}{R}{I}{G}{G}{E}{R}{c}{m}{d}"
    

    This article has more info about special keys.


Log in to reply