虚拟键盘按键的ASCII码表

常量名称    十六位值    十位值    鼠标或按钮的值

VK_LBUTTON    1    1    鼠标左键钮
VK_RBUTTON    2    2    鼠标右键钮
VK_CANCEL    3    3    Control-break执行
VK_MBUTTON    4    4    鼠标中键钮
   05-07    05-07    未定义
VK_BACK    8    8    Backspace键
VK_TAB    9    9    Tab键
   0A-0B    10-11    未定义
VK_CLEAR    0C    12    Clear键
VK_RETURN    0D    13    Enter键
   0E-0F    14-15    未定义
VK_SHIFT    10    16    Shift键
VK_CONTROL    11    17    Ctrl键
VK_MENU    12    18    Alt键
VK_PAUSE    13    19    Pause键
VK_CAPITAL    14    20    Caps Lock键
   15-19    21-25    保留给Kanji系统使用
   1A    26    未定义
VK_ESCAPE    1B    27    Esc键
   1C-1F    28-31    保留给Kanji系统使用
VK_SPACE    20    32    SpaceBar键
VK_PRIOR    21    33    Page Up键
VK_NEXT    22    34    Page Down键
VK_END    23    35    End键
VK_HOME    24    36    Home键
VK_LEFT    25    37    Left Arrow键
VK_UP    26    38    Up Arrow键
VK_RIGHT    27    39    Right Arrow键
VK_DOWN    28    40    Down Arrow键
VK_SELECT    29    41    Select键
   2A    42    OEM自订使用
VK_EXECUTE    2B    43    Execute键
VK_SNAPSHOT  2C    44    Print Screen键
VK_INSERT    2D    45    Ins键
VK_DELETE    2E    46    Del键
VK_HELP    2F    47    Help键
VK_0    30    48    0键
VK_1    31    49    1键
VK_2    32    50    2键
VK_3    33    51    3键
VK_4    34    52    4键
VK_5    35    53    5键
VK_6    36    54    6键
VK_7    37    55    7键
VK_8    38    56    8键
VK_9    39    57    9键
   3A-40    58-64    未定义
VK_A    41    65    A键
VK_B    42    66    B键
VK_C    43    67    C键
VK_D    44    68    D键
VK_E    45    69    E键
VK_F    46    70    F键
VK_G    47    71    G键
VK_H    48    72    H键
VK_I    49    73    I键
VK_J    4A    74    J键
VK_K    4B    75    K键
VK_L    4C    76    L键
VK_M    4D    77    M键
VK_N    4E    78    N键
VK_O    4F    79    O键
VK_P    50    80    P键
VK_Q    51    81    Q键
VK_R    52    82    R键
VK_S    53    83    S键
VK_T    54    84    T键
VK_U    55    85    U键
VK_V    56    86    V键
VK_W    57    87    W键
VK_X    58    88    X键
VK_Y    59    89    Y键
VK_Z    5A    90    Z键
   5B-5F    91-95    未定义
VK_NUMPAD0    60    96    数字键0键
VK_NUMPAD1    61    97    数字键1键
VK_NUMPAD2    62    98    数字键2键
VK_NUMPAD3    63    99    数字键3键
VK_NUMPAD4    64    100    数字键4键
VK_NUMPAD5    65    101    数字键5键
VK_NUMPAD6    66    102    数字键6键
VK_NUMPAD7    67    103    数字键7键
VK_NUMPAD8    68    104    数字键8键
VK_NUMPAD9    69    105    数字键9键
VK_MULTIPLY  6A    106    *键
VK_ADD    6B    107    +键
VK_SEPARATOR  6C    108    Separator键
VK_SUBTRACT  6D    109    -键
VK_DECIMAL    6E    110    .键
VK_DIVIDE    6F    111    /键
VK_F1    70    112    F1键
VK_F2    71    113    F2键
VK_F3    72    114    F3键
VK_F4    73    115    F4键
VK_F5    74    116    F5键
VK_F6    75    117    F6键
VK_F7    76    118    F7键
VK_F8    77    119    F8键
VK_F9    78    120    F9键
VK_F10    79    121    F10键
VK_F11    7A    122    F11键
VK_F12    7B    123    F12键
VK_F13    7C    124    F13键
VK_F14    7D    125    F14键
VK_F15    7E    126    F15键
VK_F16    7F    127    F16键
VK_F17    80    128    F17键
VK_F18    81    129    F18键
VK_F19    82    130    F19键
VK_F20    83    131    F20键
VK_F21    84    132    F21键
VK_F22    85    133    F22键
VK_F23    86    134    F23键
VK_F24    87    135    F24键
   88-8F    136-143    未指定
VK_NUMLOCK    90    144    Num Lock键
VK_SCROLL    91    145    Scroll Lock键
   92-B9    146-185    未指定
   BA-C0    186-192    OEM自订
   C1-DA    193-218    未指定
   DB-E4    219-228    OEM自订
   E5    229    未指定
   E6    230    OEM自订
   E7-E8    231-232    未指定
   E9-F5    233-245    OEM自订
   F6-FE    246-254    未指定  

Windows 使用的256个虚拟键码

Public Const VK_LBUTTON = &H1
Public Const VK_RBUTTON = &H2
Public Const VK_CANCEL = &H3
Public Const VK_MBUTTON = &H4
Public Const VK_BACK = &H8
Public Const VK_TAB = &H9
Public Const VK_CLEAR = &HC
Public Const VK_RETURN = &HD
Public Const VK_SHIFT = &H10
Public Const VK_CONTROL = &H11
Public Const VK_MENU = &H12
Public Const VK_PAUSE = &H13
Public Const VK_CAPITAL = &H14
Public Const VK_ESCAPE = &H1B
Public Const VK_SPACE = &H20
Public Const VK_PRIOR = &H21
Public Const VK_NEXT = &H22
Public Const VK_END = &H23
Public Const VK_HOME = &H24
Public Const VK_LEFT = &H25
Public Const VK_UP = &H26
Public Const VK_RIGHT = &H27
Public Const VK_DOWN = &H28
Public Const VK_Select = &H29
Public Const VK_PRINT = &H2A
Public Const VK_EXECUTE = &H2B
Public Const VK_SNAPSHOT = &H2C
Public Const VK_Insert = &H2D
Public Const VK_Delete = &H2E
Public Const VK_HELP = &H2F
Public Const VK_0 = &H30
Public Const VK_1 = &H31
Public Const VK_2 = &H32
Public Const VK_3 = &H33
Public Const VK_4 = &H34
Public Const VK_5 = &H35
Public Const VK_6 = &H36
Public Const VK_7 = &H37
Public Const VK_8 = &H38
Public Const VK_9 = &H39
Public Const VK_A = &H41
Public Const VK_B = &H42
Public Const VK_C = &H43
Public Const VK_D = &H44
Public Const VK_E = &H45
Public Const VK_F = &H46
Public Const VK_G = &H47
Public Const VK_H = &H48
Public Const VK_I = &H49
Public Const VK_J = &H4A
Public Const VK_K = &H4B
Public Const VK_L = &H4C
Public Const VK_M = &H4D
Public Const VK_N = &H4E
Public Const VK_O = &H4F
Public Const VK_P = &H50
Public Const VK_Q = &H51
Public Const VK_R = &H52
Public Const VK_S = &H53
Public Const VK_T = &H54
Public Const VK_U = &H55
Public Const VK_V = &H56
Public Const VK_W = &H57
Public Const VK_X = &H58
Public Const VK_Y = &H59
Public Const VK_Z = &H5A
Public Const VK_STARTKEY = &H5B
Public Const VK_CONTEXTKEY = &H5D
Public Const VK_NUMPAD0 = &H60
Public Const VK_NUMPAD1 = &H61
Public Const VK_NUMPAD2 = &H62
Public Const VK_NUMPAD3 = &H63
Public Const VK_NUMPAD4 = &H64
Public Const VK_NUMPAD5 = &H65
Public Const VK_NUMPAD6 = &H66
Public Const VK_NUMPAD7 = &H67
Public Const VK_NUMPAD8 = &H68
Public Const VK_NUMPAD9 = &H69
Public Const VK_MULTIPLY = &H6A
Public Const VK_ADD = &H6B
Public Const VK_SEPARATOR = &H6C
Public Const VK_SUBTRACT = &H6D
Public Const VK_DECIMAL = &H6E
Public Const VK_DIVIDE = &H6F
Public Const VK_F1 = &H70
Public Const VK_F2 = &H71
Public Const VK_F3 = &H72
Public Const VK_F4 = &H73
Public Const VK_F5 = &H74
Public Const VK_F6 = &H75
Public Const VK_F7 = &H76
Public Const VK_F8 = &H77
Public Const VK_F9 = &H78
Public Const VK_F10 = &H79
Public Const VK_F11 = &H7A
Public Const VK_F12 = &H7B
Public Const VK_F13 = &H7C
Public Const VK_F14 = &H7D
Public Const VK_F15 = &H7E
Public Const VK_F16 = &H7F
Public Const VK_F17 = &H80
Public Const VK_F18 = &H81
Public Const VK_F19 = &H82
Public Const VK_F20 = &H83
Public Const VK_F21 = &H84
Public Const VK_F22 = &H85
Public Const VK_F23 = &H86
Public Const VK_F24 = &H87
Public Const VK_NUMLOCK = &H90
Public Const VK_OEM_SCROLL = &H91
Public Const VK_OEM_1 = &HBA
Public Const VK_OEM_PLUS = &HBB
Public Const VK_OEM_COMMA = &HBC
Public Const VK_OEM_MINUS = &HBD
Public Const VK_OEM_PERIOD = &HBE
Public Const VK_OEM_2 = &HBF
Public Const VK_OEM_3 = &HC0
Public Const VK_OEM_4 = &HDB
Public Const VK_OEM_5 = &HDC
Public Const VK_OEM_6 = &HDD
Public Const VK_OEM_7 = &HDE
Public Const VK_OEM_8 = &HDF
Public Const VK_ICO_F17 = &HE0
Public Const VK_ICO_F18 = &HE1
Public Const VK_OEM102 = &HE2
Public Const VK_ICO_HELP = &HE3
Public Const VK_ICO_00 = &HE4
Public Const VK_ICO_CLEAR = &HE6
Public Const VK_OEM_RESET = &HE9
Public Const VK_OEM_JUMP = &HEA
Public Const VK_OEM_PA1 = &HEB
Public Const VK_OEM_PA2 = &HEC
Public Const VK_OEM_PA3 = &HED
Public Const VK_OEM_WSCTRL = &HEE
Public Const VK_OEM_CUSEL = &HEF
Public Const VK_OEM_ATTN = &HF0
Public Const VK_OEM_FINNISH = &HF1
Public Const VK_OEM_COPY = &HF2
Public Const VK_OEM_AUTO = &HF3
Public Const VK_OEM_ENLW = &HF4
Public Const VK_OEM_BACKTAB = &HF5
Public Const VK_ATTN = &HF6
Public Const VK_CRSEL = &HF7
Public Const VK_EXSEL = &HF8
Public Const VK_EREOF = &HF9
Public Const VK_PLAY = &HFA
Public Const VK_ZOOM = &HFB
Public Const VK_NONAME = &HFC
Public Const VK_PA1 = &HFD
Public Const VK_OEM_CLEAR = &HFE

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值