Special keys supported by the SendKeys command

<< Click to Display Table of Contents >>

Special keys supported by the SendKeys command

The following special keys can be used with the SendKeys statement:

Special key

String to pass

Escape

{Escape} or {Esc}

Enter

{Enter}

Shift key

Prepend the sign + (for example +{F9} for Shift+F9)

Alt key

Prepend the sign % (for example %{F9} for Alt+F9)

Ctrl key

Prepend the sign ^ (for example ^{F9} for Ctrl+F9)

Tab

{Tab}

Cursor left

{Left}

Cursor right

{Right}

Cursor down

{Down}

Cursor ip

{Up}

Home

{Home}

End

{End}

Page down

{PageDn}

Page up

{PageUp}

Backspace

{Backspace} or {BS}

Delete

{Delete} or {Del}

Insert

{Insert}

Print Screen

{PrtSc}

Ctrl+Break

{Break}

Caps lock

{CapsLock}

Num lock

{NumLock}

Numeric keypad 0

{NumPad0}

.

 

.

 

Numeric keypad 9

{NumPad9}

Numeric keypad /

{NumPad/}

Numeric keypad *

{NumPad*}

Numeric keypad -

{NumPad-}

Numeric keypad +

{NumPad+}

Numeric keypad .

{NumPad.}

F1

{F1}

.

 

.

 

F12

{F12}