Virtual key code (Windows)

zhaozj2021-02-17  47

Virtual Key Code Corresponding Key

VK_LButton Left Mouse Button

VK_RBUTTON Right Mouse Button

VK_CANCEL Control Break

VK_MBUTTON MIDDLE MOUSE button

VK_BACK Backspace Key

VK_TAB TAB KEY

VK_CLEAR CLEAR Key

VK_RETURN ENTER Key

VK_SHIFT SHIFT Key

VK_Control Ctrl Key

VK_MENU Alt Key

VK_PAUSE PAUSE Key

VK_Capital Caps Lock Key

VK_KANA USED with IME

VK_HANGUL USED with IME

VK_Junja Used with Ime

VK_Final Used with Ime

VK_HANJA USED with IME

VK_KANJI USED with IME

VK_CONVERT USED with IME

VK_NONCONVERT USED with IME

VK_ACCEPT Used with IME

VK_MODECHANGE Used with iMe

VK_EScape Esc Key

VK_Space Space Bar

VK_Prior Page Up Key

VK_NEXT Page Down Key

VK_END End Key

VK_HOME Home Key

VK_LEFT LEFT Arrow Key

VK_UP UP ARROW Key

VK_Right Right Arrow Key

VK_DOWN DOWN ARROW Key

VK_SELECT SELECT Key

VK_PRINT Print Key (Keyboard-Specific)

VK_EXECUTE EXECUTE Key

VK_SNAPSHOT Print Screen Key

VK_INSERT INSERT Key

VK_DELETE Delete Key

VK_HELP HELP Key

VK_LWIN LEFT Windows Key (Microsoft Keyboard)

VK_RWIN RIGHT Windows Key (Microsoft Keyboard)

VK_APPS Applications Key (Microsoft Keyboard)

VK_NUMPAD0 0 KEY (NUMERIC Keypad)

VK_NUMPAD1 1 KEY (NUMERIC Keypad)

VK_NUMPAD2 2 KEY (NUMERIC Keypad)

VK_NUMPAD3 3 KEY (NUMERIC Keypad)

VK_NUMPAD4 4 KEY (NUMERIC Keypad)

VK_NUMPAD5 5 KEY (NUMERIC Keypad)

VK_NUMPAD6 6 KEY (NUMERIC Keypad)

VK_NUMPAD7 7 KEY (NUMERIC Keypad)

VK_NUMPAD8 8 KEY (NUMERIC Keypad)

VK_NUMPAD9 9 KEY (NUMERIC Keypad)

VK_MULTIPLY MULTIPLY KEY (NUMERIC Keypad)

VK_ADD Add Key (Numeric Keypad)

VK_SEPARATOR SEPARATOR Key (Numeric Keypad) VK_SUBTRACT SUBTRACT Key (Numeric Keypad)

VK_DECIMAL DECIMAL Key (Numeric Keypad)

VK_DIVIDE DIVIDE KEY (NUMERIC Keypad)

VK_F1 F1 Key

VK_F2 F2 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_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_F20 F20 Key

VK_F21 F21 Key

VK_F22 F22 Key

VK_F23 F23 Key

VK_F24 F24 Key

VK_NUMLOCK NUM LOCK KEY

VK_SCROLL SCROLL LOCK KEY

VK_Lshift Left Shift Key (Only Used with getKesyState)

VK_RSHIFT Right Shift Key (Only Used with getKesyState)

VK_LControl Left Ctrl Key (ONLY USED with getKeystate)

VK_RCONTROL Right Ctrl Key (Only Used with getKeyste)

VK_LMENU LEFT Alt Key (Only Used with getKesyState)

VK_RMENU Right Alt Key (ONLY Used with getKeystate)

VK_PROCESSKEY Process Key

VK_ATTN ATTN Key

VK_CRSEL CRSEL Key

VK_EXSEL EXSEL Key

VK_EREOF ERASE EOF Key

VK_Play Play Key

VK_Zoom Zoom Key

VK_NONAME RESERVED for Future Uses

VK_PA1 PA1 Key

VK_OEM_CLEAR CLEAR Key

转载请注明原文地址:https://www.9cbs.com/read-29414.html

New Post(0)