// VK names, get from the winuser.h by Jeffrey // /#define:b+VK_{[A-Z0-9_]+}:b+{.+} // /t"/1",/t/t/2 TCHAR* VKName[256] = { _T("unknown"), //0x00 _T("LBUTTON"), //0x01 _T("RBUTTON"), //0x02 _T("CANCEL"), //0x03 _T("MBUTTON"), //0x04 /* NOT contiguous with L & RBUTTON */ _T("XBUTTON1"), //0x05 /* NOT contiguous with L & RBUTTON */ _T("XBUTTON2"), //0x06 /* NOT contiguous with L & RBUTTON */ _T("unassigned"), //0x07 _T("BACK"), //0x08 _T("TAB"), //0x09 _T("reserved"), //0x0A _T("reserved"), //0x0B _T("CLEAR"), //0x0C _T("RETURN"), //0x0D _T("unknown"), //0x0E _T("unknown"), //0x0F _T("SHIFT"), //0x10 _T("CONTROL"), //0x11 _T("MENU"), //0x12 _T("PAUSE"), //0x13 _T("CAPITAL"), //0x14 _T("KANA"), //0x15 _T("unknown"), //0x16 _T("JUNJA"), //0x17 _T("FINAL"), //0x18 _T("KANJI"), //0x19 _T("unknown"), //0x1A _T("ESCAPE"), //0x1B _T("CONVERT"), //0x1C _T("NONCONVERT"), //0x1D _T("ACCEPT"), //0x1E _T("MODECHANGE"), //0x1F _T("SPACE"), //0x20 _T("PRIOR"), //0x21 _T("NEXT"), //0x22 _T("END"), //0x23 _T("HOME"), //0x24 _T("LEFT"), //0x25 _T("UP"), //0x26 _T("RIGHT"), //0x27 _T("DOWN"), //0x28 _T("SELECT"), //0x29 _T("PRINT"), //0x2A _T("EXECUTE"), //0x2B _T("SNAPSHOT"), //0x2C _T("INSERT"), //0x2D _T("DELETE"), //0x2E _T("HELP"), //0x2F /* * VK_0 - VK_9 are the same as ASCII '0' - '9' (0x30 - 0x39) * 0x40 : unassigned * VK_A - VK_Z are the same as ASCII 'A' - 'Z' (0x41 - 0x5A) */ _T("0"), //0x30 _T("1"), //0x31 _T("2"), //0x32 _T("3"), //0x33 _T("4"), //0x34 _T("5"), //0x35 _T("6"), //0x36 _T("7"), //0x37 _T("8"), //0x38 _T("9"), //0x39 _T("unknown"), //0x3A _T("unknown"), //0x3B _T("unknown"), //0x3C _T("unknown"), //0x3D _T("unknown"), //0x3E _T("unknown"), //0x3F _T("unassigned"), //0x40 _T("A"), //0x41 _T("B"), //0x42 _T("C"), //0x43 _T("D"), //0x44 _T("E"), //0x45 _T("F"), //0x46 _T("G"), //0x47 _T("H"), //0x48 _T("I"), //0x49 _T("J"), //0x4A _T("K"), //0x4B _T("L"), //0x4C _T("M"), //0x4D _T("N"), //0x4E _T("O"), //0x4F _T("P"), //0x50 _T("Q"), //0x51 _T("R"), //0x52 _T("S"), //0x53 _T("T"), //0x54 _T("U"), //0x55 _T("V"), //0x56 _T("W"), //0x57 _T("X"), //0x58 _T("Y"), //0x59 _T("Z"), //0x5A _T("LWIN"), //0x5B _T("RWIN"), //0x5C _T("APPS"), //0x5D _T("reserved"), //0x5E _T("SLEEP"), //0x5F _T("NUMPAD0"), //0x60 _T("NUMPAD1"), //0x61 _T("NUMPAD2"), //0x62 _T("NUMPAD3"), //0x63 _T("NUMPAD4"), //0x64 _T("NUMPAD5"), //0x65 _T("NUMPAD6"), //0x66 _T("NUMPAD7"), //0x67 _T("NUMPAD8"), //0x68 _T("NUMPAD9"), //0x69 _T("MULTIPLY"), //0x6A _T("ADD"), //0x6B _T("SEPARATOR"), //0x6C _T("SUBTRACT"), //0x6D _T("DECIMAL"), //0x6E _T("DIVIDE"), //0x6F _T("F1"), //0x70 _T("F2"), //0x71 _T("F3"), //0x72 _T("F4"), //0x73 _T("F5"), //0x74 _T("F6"), //0x75 _T("F7"), //0x76 _T("F8"), //0x77 _T("F9"), //0x78 _T("F10"), //0x79 _T("F11"), //0x7A _T("F12"), //0x7B _T("F13"), //0x7C _T("F14"), //0x7D _T("F15"), //0x7E _T("F16"), //0x7F _T("F17"), //0x80 _T("F18"), //0x81 _T("F19"), //0x82 _T("F20"), //0x83 _T("F21"), //0x84 _T("F22"), //0x85 _T("F23"), //0x86 _T("F24"), //0x87 _T("unassigned"), //0x88 _T("unassigned"), //0x89 _T("unassigned"), //0x8A _T("unassigned"), //0x8B _T("unassigned"), //0x8C _T("unassigned"), //0x8D _T("unassigned"), //0x8E _T("unassigned"), //0x8F _T("NUMLOCK"), //0x90 _T("SCROLL"), //0x91 /* * NEC PC-9800 kbd definitions */ _T("OEM_NEC_EQUAL/OEM_FJ_JISHO"),//0x92 // '=' key on numpad / 'Dictionary' key /* * Fujitsu/OASYS kbd definitions */ _T("OEM_FJ_MASSHOU"),//0x93 // 'Unregister word' key _T("OEM_FJ_TOUROKU"),//0x94 // 'Register word' key _T("OEM_FJ_LOYA"), //0x95 // 'Left OYAYUBI' key _T("OEM_FJ_ROYA"), //0x96 // 'Right OYAYUBI' key _T("unassigned"), //0x97 _T("unassigned"), //0x98 _T("unassigned"), //0x99 _T("unassigned"), //0x9A _T("unassigned"), //0x9B _T("unassigned"), //0x9C _T("unassigned"), //0x9D _T("unassigned"), //0x9E _T("unassigned"), //0x9F /* * VK_L* & VK_R* - left and right Alt, Ctrl and Shift virtual keys. * Used only as parameters to GetAsyncKeyState() and GetKeyState(). * No other API or message will distinguish left and right keys in this way. */ _T("LSHIFT"), //0xA0 _T("RSHIFT"), //0xA1 _T("LCONTROL"), //0xA2 _T("RCONTROL"), //0xA3 _T("LMENU"), //0xA4 _T("RMENU"), //0xA5 _T("BROWSER_BACK"), //0xA6 _T("BROWSER_FORWARD"), //0xA7 _T("BROWSER_REFRESH"), //0xA8 _T("BROWSER_STOP"), //0xA9 _T("BROWSER_SEARCH"), //0xAA _T("BROWSER_FAVORITES"),//0xAB _T("BROWSER_HOME"), //0xAC _T("VOLUME_MUTE"), //0xAD _T("VOLUME_DOWN"), //0xAE _T("VOLUME_UP"), //0xAF _T("MEDIA_NEXT_TRACK"), //0xB0 _T("MEDIA_PREV_TRACK"), //0xB1 _T("MEDIA_STOP"), //0xB2 _T("MEDIA_PLAY_PAUSE"), //0xB3 _T("LAUNCH_MAIL"), //0xB4 _T("LAUNCH_MEDIA_SELECT"),//0xB5 _T("LAUNCH_APP1"), //0xB6 _T("LAUNCH_APP2"), //0xB7 _T("reserved"), //0xB8 _T("reserved"), //0xB9 _T(";"), //0xBA // ';:' for US _T("+"), //0xBB // '+' any country _T(","), //0xBC // ',' any country _T("-"), //0xBD // '-' any country _T("."), //0xBE // '.' any country _T("/"), //0xBF // '/?' for US _T("`"), //0xC0 // '`~' for US _T("reserved"), //0xC1 _T("reserved"), //0xC2 _T("reserved"), //0xC3 _T("reserved"), //0xC4 _T("reserved"), //0xC5 _T("reserved"), //0xC6 _T("reserved"), //0xC7 _T("reserved"), //0xC8 _T("reserved"), //0xC9 _T("reserved"), //0xCA _T("reserved"), //0xCB _T("reserved"), //0xCC _T("reserved"), //0xCD _T("reserved"), //0xCE _T("reserved"), //0xCF _T("reserved"), //0xD0 _T("reserved"), //0xD1 _T("reserved"), //0xD2 _T("reserved"), //0xD3 _T("reserved"), //0xD4 _T("reserved"), //0xD5 _T("reserved"), //0xD6 _T("reserved"), //0xD7 _T("unassigned"), //0xD8 _T("unassigned"), //0xD9 _T("unassigned"), //0xDA _T("["), //0xDB // '[{' for US _T("//"), //0xDC // '/|' for US _T("]"), //0xDD // ']}' for US _T("'"), //0xDE // ''"' for US _T("OEM_8"), //0xDF _T("reserved"), //0xE0 /* * Various extended or enhanced keyboards */ _T("OEM_AX"), //0xE1 // 'AX' key on Japanese AX kbd _T("OEM_102"), //0xE2 // "<>" or "/|" on RT 102-key kbd. _T("ICO_HELP"), //0xE3 // Help key on ICO _T("ICO_00"), //0xE4 // 00 key on ICO _T("PROCESSKEY"), //0xE5 _T("ICO_CLEAR"), //0xE6 _T("PACKET"), //0xE7 _T("unassigned"), //0xE8 /* * Nokia/Ericsson definitions */ _T("OEM_RESET"), //0xE9 _T("OEM_JUMP"), //0xEA _T("OEM_PA1"), //0xEB _T("OEM_PA2"), //0xEC _T("OEM_PA3"), //0xED _T("OEM_WSCTRL"), //0xEE _T("OEM_CUSEL"), //0xEF _T("OEM_ATTN"), //0xF0 _T("OEM_FINISH"), //0xF1 _T("OEM_COPY"), //0xF2 _T("OEM_AUTO"), //0xF3 _T("OEM_ENLW"), //0xF4 _T("OEM_BACKTAB"), //0xF5 _T("ATTN"), //0xF6 _T("CRSEL"), //0xF7 _T("EXSEL"), //0xF8 _T("EREOF"), //0xF9 _T("PLAY"), //0xFA _T("ZOOM"), //0xFB _T("NONAME"), //0xFC _T("PA1"), //0xFD _T("OEM_CLEAR"), //0xFE _T("unknown"), //0xFF };
键盘vk值所对应的vk名称
最新推荐文章于 2024-01-30 16:38:02 发布