Virtual Keys

 

Below is a list developed by Microsoft of available virtual keys. Macro Express Pro supports these virtual keys via the <KEYD: and <KEYU: syntax in the Text Type command.

 

If your system supports these keys, they may be played back through the Text Type command. For example, to hold down the Delete key and later release it, use the following syntax:  <KEYD:VK_DELETE> and <KEYU:VK_DELETE>.

 

 

Virtual Key

Description

VK_ACCEPT

IME accept

VK_ADD

Add key

VK_APPS

Applications key (Natural keyboard)

VK_ATTN

Attn key

VK_BACK

BACKSPACE key

VK_BROWSER_BACK

Browser Back key

VK_BROWSER_FAVORITES

Browser Favorites key

VK_BROWSER_FORWARD

Browser Forward key

VK_BROWSER_HOME

Browser Start and Home key

VK_BROWSER_REFRESH

Browser Refresh key

VK_BROWSER_SEARCH

Browser Search key

VK_BROWSER_STOP

Browser Stop key

VK_CANCEL

Control-break processing

VK_CAPITAL

CAPS LOCK key

VK_CLEAR

CLEAR key

VK_CONTROL

CTRL key

VK_CONVERT

IME convert

VK_CRSEL

CrSel key

VK_DECIMAL

Decimal key

VK_DELETE

DEL key

VK_DIVIDE

Divide key

VK_DOWN

DOWN ARROW key

VK_END

END key

VK_EREOF

Erase EOF key

VK_ESCAPE

ESC key

VK_EXECUTE

EXECUTE key

VK_EXSEL

ExSel key

VK_F1

F1 key

VK_F10

F10 key

VK_F11

F11 key

VK_F12

F12 key

VK_F13

F13 key

VK_F14

F14 key

VK_F15

F15 key

VK_F16

F16 key

VK_F17

F17 key

VK_F18

F18 key

VK_F19

F19 key

VK_F2

F2 key

VK_F20

F20 key

VK_F21

F21 key

VK_F22

F22 key

VK_F23

F23 key

VK_F24

F24 key

VK_F3

F3 key

VK_F4

F4 key

VK_F5

F5 key

VK_F6

F6 key

VK_F7

F7 key

VK_F8

F8 key

VK_F9

F9 key

VK_FINAL

IME final mode

VK_HANGUEL

IME Hanguel mode (maintained for compatibility; use VK_HANGUL)

VK_HANGUL

IME Hangul mode

VK_HANJA

IME Hanja mode

VK_HELP

HELP key

VK_HOME

HOME key

VK_INSERT

INS key

VK_JUNJA

IME Junja mode

VK_KANA

IME Kana mode

VK_KANJI

IME Kanji mode

VK_LAUNCH_APP1

Start Application 1 key

VK_LAUNCH_APP2

Start Application 2 key

VK_LAUNCH_MAIL

Start Mail key

VK_LAUNCH_MEDIA_SELECT

Select Media key

VK_LBUTTON

Left mouse button

VK_LCONTROL

Left CONTROL key

VK_LEFT

LEFT ARROW key

VK_LMENU

Left MENU key

VK_LSHIFT

Left SHIFT key

VK_LWIN

Left Windows key (Natural keyboard)

VK_MBUTTON

Middle mouse button (three-button mouse)

VK_MEDIA_NEXT_TRACK

Next Track key

VK_MEDIA_PLAY_PAUSE

Play/Pause Media key

VK_MEDIA_PREV_TRACK

Previous Track key

VK_MEDIA_STOP

Stop Media key

VK_MENU

ALT key

VK_MODECHANGE

IME mode change request

VK_MULTIPLY

Multiply key

VK_NEXT

PAGE DOWN key

VK_NONAME

Reserved

VK_NONCONVERT

IME nonconvert

VK_NUMLOCK

NUM LOCK key

VK_NUMPAD0

Numeric keypad 0 key

VK_NUMPAD1

Numeric keypad 1 key

VK_NUMPAD2

Numeric keypad 2 key

VK_NUMPAD3

Numeric keypad 3 key

VK_NUMPAD4

Numeric keypad 4 key

VK_NUMPAD5

Numeric keypad 5 key

VK_NUMPAD6

Numeric keypad 6 key

VK_NUMPAD7

Numeric keypad 7 key

VK_NUMPAD8

Numeric keypad 8 key

VK_NUMPAD9

Numeric keypad 9 key

VK_OEM_1

Used for miscellaneous characters; it can vary by keyboard.

VK_OEM_102

Either the angle bracket key or the backslash key on the RT 102-key keyboard

VK_OEM_2

Used for miscellaneous characters; it can vary by keyboard.

VK_OEM_3

Used for miscellaneous characters; it can vary by keyboard.

VK_OEM_4

Used for miscellaneous characters; it can vary by keyboard.

VK_OEM_5

Used for miscellaneous characters; it can vary by keyboard.

VK_OEM_6

Used for miscellaneous characters; it can vary by keyboard.

VK_OEM_7

Used for miscellaneous characters; it can vary by keyboard.

VK_OEM_8

Used for miscellaneous characters; it can vary by keyboard.

VK_OEM_CLEAR

Clear key

VK_OEM_COMMA

For any country/region, the ',' key

VK_OEM_MINUS

For any country/region, the '-' key

VK_OEM_PERIOD

For any country/region, the '.' key

VK_OEM_PLUS

For any country/region, the '+' key

VK_PA1

PA1 key

VK_PACKET

Used to pass Unicode characters as if they were keystrokes. The VK_PACKET key is the low word of a 32-bit Virtual Key value used for non-keyboard input methods.

VK_PAUSE

PAUSE key

VK_PLAY

Play key

VK_PRINT

PRINT key

VK_PRIOR

PAGE UP key

VK_PROCESSKEY

IME PROCESS key

VK_RBUTTON

Right mouse button

VK_RCONTROL

Right CONTROL key

VK_RETURN

ENTER key

VK_RIGHT

RIGHT ARROW key

VK_RMENU

Right MENU key

VK_RSHIFT

Right SHIFT key

VK_RWIN

Right Windows key (Natural keyboard)

VK_SCROLL

SCROLL LOCK key

VK_SELECT

SELECT key

VK_SEPARATOR

Separator key

VK_SHIFT

SHIFT key

VK_SLEEP

Computer Sleep key

VK_SNAPSHOT

PRINT SCREEN key

VK_SPACE

SPACEBAR

VK_SUBTRACT

Subtract key

VK_TAB

TAB key

VK_UP

UP ARROW key

VK_VOLUME_DOWN

Volume Down key

VK_VOLUME_MUTE

Volume Mute key

VK_VOLUME_UP

Volume Up key

VK_XBUTTON1

X1 mouse button

VK_XBUTTON2

X2 mouse button

VK_ZOOM

Zoom key