KeyCodes Constants

TestStand 2019 Help

Edition Date: May 2019

Part Number: 370052AA-01

»View Product Info
Download Help (Windows Only)

These constants specify the virtual key codes for the KeyDown and KeyUp events.

  • KeyCode_VK_0–(Value: 0x30) The 0 key.
  • KeyCode_VK_1–(Value: 0x31) The 1 key.
  • KeyCode_VK_2–(Value: 0x32) The 2 key.
  • KeyCode_VK_3–(Value: 0x33) The 3 key.
  • KeyCode_VK_4–(Value: 0x34) The 4 key.
  • KeyCode_VK_5–(Value: 0x35) The 5 key.
  • KeyCode_VK_6–(Value: 0x36) The 6 key.
  • KeyCode_VK_7–(Value: 0x37) The 7 key.
  • KeyCode_VK_8–(Value: 0x38) The 8 key.
  • KeyCode_VK_9–(Value: 0x39) The 9 key.
  • KeyCode_VK_A–(Value: 0x41) The A key.
  • KeyCode_VK_ACCEPT–(Value: 0x1E) The Input Method Editor (IME) Accept key.
  • KeyCode_VK_ADD–(Value: 0x6B) The Add key.
  • KeyCode_VK_APPS–(Value: 0x5D) The Applications key.
  • KeyCode_VK_B–(Value: 0x42) The B key.
  • KeyCode_VK_BACK–(Value: 0x08) The Backspace key.
  • KeyCode_VK_C–(Value: 0x43) The C key.
  • KeyCode_VK_CANCEL–(Value: 0x03) The Cancel key.
  • KeyCode_VK_CAPITAL–(Value: 0x14) The Caps Lock key.
  • KeyCode_VK_CLEAR–(Value: 0x0C) The Clear key.
  • KeyCode_VK_CONTROL–(Value: 0x11) The Ctrl key.
  • KeyCode_VK_CONVERT–(Value: 0x1C) The IME Convert key.
  • KeyCode_VK_D–(Value: 0x44) The D key.
  • KeyCode_VK_DECIMAL–(Value: 0x6E) The Decimal key.
  • KeyCode_VK_DELETE–(Value: 0x2E) The Delete key.
  • KeyCode_VK_DIVIDE–(Value: 0x6F) The Divide key.
  • KeyCode_VK_DOWN–(Value: 0x28) The Down Arrow key.
  • KeyCode_VK_E–(Value: 0x45) The E key.
  • KeyCode_VK_END–(Value: 0x23) The End key.
  • KeyCode_VK_ESCAPE–(Value: 0x1B) The Escape key.
  • KeyCode_VK_EXECUTE–(Value: 0x2B) The Execute key.
  • KeyCode_VK_F–(Value: 0x46) The F key.
  • KeyCode_VK_F1–(Value: 0x70) The F1 key.
  • KeyCode_VK_F10–(Value: 0x79) The F10 key.
  • KeyCode_VK_F11–(Value: 0x7A) The F11 key.
  • KeyCode_VK_F12–(Value: 0x7B) The F12 key.
  • KeyCode_VK_F13–(Value: 0x7C) The F13 key.
  • KeyCode_VK_F14–(Value: 0x7D) The F14 key.
  • KeyCode_VK_F15–(Value: 0x7E) The F15 key.
  • KeyCode_VK_F16–(Value: 0x7F) The F16 key.
  • KeyCode_VK_F17–(Value: 0x80) The F17 key.
  • KeyCode_VK_F18–(Value: 0x81) The F18 key.
  • KeyCode_VK_F19–(Value: 0x82) The F19 key.
  • KeyCode_VK_F2–(Value: 0x71) The F2 key.
  • KeyCode_VK_F20–(Value: 0x83) The F20 key.
  • KeyCode_VK_F21–(Value: 0x84) The F21 key.
  • KeyCode_VK_F22–(Value: 0x85) The F22 key.
  • KeyCode_VK_F23–(Value: 0x86) The F23 key.
  • KeyCode_VK_F24–(Value: 0x87) The F24 key.
  • KeyCode_VK_F3–(Value: 0x72) The F3 key.
  • KeyCode_VK_F4–(Value: 0x73) The F4 key.
  • KeyCode_VK_F5–(Value: 0x74) The F5 key.
  • KeyCode_VK_F6–(Value: 0x75) The F6 key.
  • KeyCode_VK_F7–(Value: 0x76) The F7 key.
  • KeyCode_VK_F8–(Value: 0x77) The F8 key.
  • KeyCode_VK_F9–(Value: 0x78) The F9 key.
  • KeyCode_VK_FINAL–(Value: 0x18) The Final key.
  • KeyCode_VK_G–(Value: 0x47) The G key.
  • KeyCode_VK_H–(Value: 0x48) The H key.
  • KeyCode_VK_HANGEUL–(Value: 0x15) The Hangeul key.
  • KeyCode_VK_HANGUL–(Value: 0x15) The Hangul key.
  • KeyCode_VK_HANJA–(Value: 0x19) The Hanja key.
  • KeyCode_VK_HELP–(Value: 0x2F) The Help key.
  • KeyCode_VK_HOME–(Value: 0x24) The Home key.
  • KeyCode_VK_I–(Value: 0x49) The I key.
  • KeyCode_VK_INSERT–(Value: 0x2D) The Insert key.
  • KeyCode_VK_J–(Value: 0x4A) The J key.
  • KeyCode_VK_JUNJA–(Value: 0x17) The Junja key.
  • KeyCode_VK_K–(Value: 0x4B) The K key.
  • KeyCode_VK_KANA–(Value: 0x15) The Kana key.
  • KeyCode_VK_KANJI–(Value: 0x19) The Kanji key.
  • KeyCode_VK_L–(Value: 0x4C) The L key.
  • KeyCode_VK_LEFT–(Value: 0x25) The Left Arrow key.
  • KeyCode_VK_LWIN–(Value: 0x5B) The Left Microsoft Windows key.
  • KeyCode_VK_M–(Value: 0x4D) The M key.
  • KeyCode_VK_MENU–(Value: 0x12) The Alt key.
  • KeyCode_VK_MODECHANGE–(Value: 0x1F) The IME Mode Change Request key.
  • KeyCode_VK_MULTIPLY–(Value: 0x6A) The Multiply key.
  • KeyCode_VK_N–(Value: 0x4E) The N key.
  • KeyCode_VK_NEXT–(Value: 0x22) The Page Down key.
  • KeyCode_VK_NONCONVERT–(Value: 0x1D) The IME Nonconvert key.
  • KeyCode_VK_NUMLOCK–(Value: 0x90) The Num Lock key.
  • KeyCode_VK_NUMPAD0–(Value: 0x60) The numeric keypad 0 key.
  • KeyCode_VK_NUMPAD1–(Value: 0x61) The numeric keypad 1 key.
  • KeyCode_VK_NUMPAD2–(Value: 0x62) The numeric keypad 2 key.
  • KeyCode_VK_NUMPAD3–(Value: 0x63) The numeric keypad 3 key.
  • KeyCode_VK_NUMPAD4–(Value: 0x64) The numeric keypad 4 key.
  • KeyCode_VK_NUMPAD5–(Value: 0x65) The numeric keypad 5 key.
  • KeyCode_VK_NUMPAD6–(Value: 0x66) The numeric keypad 6 key.
  • KeyCode_VK_NUMPAD7–(Value: 0x67) The numeric keypad 7 key.
  • KeyCode_VK_NUMPAD8–(Value: 0x68) The numeric keypad 8 key.
  • KeyCode_VK_NUMPAD9–(Value: 0x69) The numeric keypad 9 key.
  • KeyCode_VK_O–(Value: 0x4F) The O key.
  • KeyCode_VK_P–(Value: 0x50) The P key.
  • KeyCode_VK_PAUSE–(Value: 0x13) The Pause key.
  • KeyCode_VK_PRINT–(Value: 0x2A) The Print key.
  • KeyCode_VK_PRIOR–(Value: 0x21) The Page Up key.
  • KeyCode_VK_Q–(Value: 0x51) The Q key.
  • KeyCode_VK_R–(Value: 0x52) The R key.
  • KeyCode_VK_RETURN–(Value: 0x0D) The Enter key.
  • KeyCode_VK_RIGHT–(Value: 0x27) The Right Arrow key.
  • KeyCode_VK_RWIN–(Value: 0x5C) The Right Microsoft Windows key.
  • KeyCode_VK_S–(Value: 0x53) The S key.
  • KeyCode_VK_SCROLL–(Value: 0x91) The Scroll Lock key.
  • KeyCode_VK_SELECT–(Value: 0x29) The Select key.
  • KeyCode_VK_SEPARATOR–(Value: 0x6C) The Separator key.
  • KeyCode_VK_SHIFT–(Value: 0x10) The Shift key.
  • KeyCode_VK_SNAPSHOT–(Value: 0x2C) The Snapshot key.
  • KeyCode_VK_SPACE–(Value: 0x20) The Space key.
  • KeyCode_VK_SUBTRACT–(Value: 0x6D) The Subtract key.
  • KeyCode_VK_T–(Value: 0x54) The T key.
  • KeyCode_VK_TAB–(Value: 0x09) The Tab key.
  • KeyCode_VK_U–(Value: 0x55) The U key.
  • KeyCode_VK_UP–(Value: 0x26) The Up Arrow key.
  • KeyCode_VK_V–(Value: 0x56) The V key.
  • KeyCode_VK_W–(Value: 0x57) The W key.
  • KeyCode_VK_X–(Value: 0x58) The X key.
  • KeyCode_VK_Y–(Value: 0x59) The Y key.
  • KeyCode_VK_Z–(Value: 0x5A) The Z key.

WAS THIS ARTICLE HELPFUL?

Not Helpful