C++Builder键盘各个键对应的Key

Virtual Key CodeCorresponding key

VK_LBUTTONLeft mouse button
VK_RBUTTONRight mouse button
VK_CANCELControl+Break
VK_MBUTTONMiddle mouse button
VK_BACKBackspace key
VK_TABTab key
VK_CLEARClear key
VK_RETURNEnter key
VK_SHIFTShift key
VK_CONTROLCtrl key
VK_MENUAlt key
VK_PAUSEPause key
VK_CAPITALCaps Lock key
VK_KANAUsed with IME
VK_HANGULUsed with IME
VK_JUNJAUsed with IME
VK_FINALUsed with IME
VK_HANJAUsed with IME
VK_KANJIUsed with IME
VK_CONVERTUsed with IME

VK_NONCONVERTUsed with IME
VK_ACCEPTUsed with IME
VK_MODECHANGEUsed with IME
VK_ESCAPEEsc key
VK_SPACESpace bar
VK_PRIORPage Up key
VK_NEXTPage Down key
VK_ENDEnd key
VK_HOMEHome key
VK_LEFTLeft Arrow key
VK_UPUp Arrow key
VK_RIGHTRight Arrow key
VK_DOWNDown Arrow key
VK_SELECTSelect key
VK_PRINTPrint key (keyboard-specific)
VK_EXECUTEExecute key
VK_SNAPSHOTPrint Screen key
VK_INSERTInsert key
VK_DELETEDelete key
VK_HELPHelp key

VK_LWINLeft Windows key (Microsoft keyboard)
VK_RWINRight Windows key (Microsoft keyboard)
VK_APPSApplications key (Microsoft keyboard)
VK_NUMPAD00 key (numeric keypad)
VK_NUMPAD11 key (numeric keypad)
VK_NUMPAD22 key (numeric keypad)
VK_NUMPAD33 key (numeric keypad)
VK_NUMPAD44 key (numeric keypad)
VK_NUMPAD55 key (numeric keypad)
VK_NUMPAD66 key (numeric keypad)
VK_NUMPAD77 key (numeric keypad)
VK_NUMPAD88 key (numeric keypad)
VK_NUMPAD99 key (numeric keypad)

VK_MULTIPLYMultiply key (numeric keypad)
VK_ADDAdd key (numeric keypad)
VK_SEPARATORSeparator key (numeric keypad)
VK_SUBTRACTSubtract key (numeric keypad)
VK_DECIMALDecimal key (numeric keypad)
VK_DIVIDEDivide key (numeric keypad)
VK_F1F1 key
VK_F2F2 key
VK_F3F3 key
VK_F4F4 key
VK_F5F5 key
VK_F6F6 key
VK_F7F7 key
VK_F8F8 key
VK_F9F9 key
VK_F10F10 key
VK_F11F11 key
VK_F12F12 key
VK_F13F13 key
VK_F14F14 key
VK_F15F15 key

VK_F16F16 key
VK_F17F17 key
VK_F18F18 key
VK_F19F19 key
VK_F20F20 key
VK_F21F21 key
VK_F22F22 key
VK_F23F23 key
VK_F24F24 key
VK_NUMLOCKNum Lock key
VK_SCROLLScroll Lock key
VK_LSHIFTLeft Shift key (only used with GetAsyncKeyState and GetKeyState)
VK_RSHIFTRight Shift key  (only used with GetAsyncKeyState and GetKeyState)
VK_LCONTROLLeft Ctrl key  (only used with GetAsyncKeyState and GetKeyState)
VK_RCONTROLRight Ctrl key  (only used with GetAsyncKeyState and GetKeyState)

VK_LMENULeft Alt key  (only used with GetAsyncKeyState and GetKeyState)
VK_RMENURight Alt key  (only used with GetAsyncKeyState and GetKeyState)
VK_PROCESSKEYProcess key
VK_ATTNAttn key
VK_CRSELCrSel key
VK_EXSELExSel key
VK_EREOFErase EOF key
VK_PLAYPlay key
VK_ZOOMZoom key
VK_NONAMEReserved for future use
VK_PA1PA1 key
VK_OEM_CLEARClear key

你可能感兴趣的:(C++Builder,按键值)