How to send/type keys using vbscript.

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,921
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Nov 1, 2008

How to send/type keys using vbscript.

set shl = CreateObject("Wscript.Shell")
shl.SendKeys"The keys"


ABCDEFGHIJK = ABCDEFGHIJK

1234567890=1234567890

BACKSPACE = {BACKSPACE}

CAPS LOCK = {CAPSLOCK}
NUM LOCK = {NUMLOCK}
CAPS LOCK = {CAPSLOCK}

DELETE = {DELETE}

DOWN ARROW = {DOWN}
UP ARROW = {UP}
LEFT ARROW = {LEFT}
RIGHT ARROW = {RIGHT}

ENTER = {ENTER}

ESC = {ESC}

PAGE DOWN = {PGDN}
PAGE UP = {PGUP}

PRINT SCREEN = {PRTSC}

TAB = {TAB}

F1 = {F1}
F2 = {F2}
F3 = {F3}
F4 = {F4}
F5 = {F5}
F6 = {F6}
F7 = {F7}
F8 = {F8}
F9 = {F9}
F10 = {F10}
F11 = {F11}
F12 = {F12}
F13 = {F13}
F14 = {F14}
F15 = {F15}
F16 = {F16}

SHIFT = +

CTRL = ^

ALT = %

+ = {+}

^ = {^}

% = {%}

RIGHT CLICK (MOUSE) = +{F10}



If you want to win awesome stuff just by answering questions send me pm! (lockers)

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (elisha054)

  • it won't open for me

  • @frsn98 More details?

see all

All Comments (33)

Sign In or Sign Up now to post a comment!
  • @frsn98

    Two solutions that may be the problem:

    1. Have you saved the file with the code as all files ?

    2. Have you Binded That File Type To A Other Program ?

  • Hi (:

    i working with a script and have problems with :/

    im trying to get the key to be pushed in x sec ...

    i have googled in 2 days now :S

    can u help me out with this ?

    The code i have found on google :

    Wsh.Key.Down " key to use "

    But can not get it to work :(

    sry bad eng btw ...

  • how do I send %%random%%

    (as in random keys)

  • @bobbobly1 yup

  • @bobbobly1 uip

  • @Daniel55556 just do a.sendkeys "{space}"

  • @Daniel55556 what do you meen?

  • @elisha054 how do i put in a space?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more