• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Delphi 键盘常用参数(PC端和手机端 安卓/IOS)虚拟按键(Virtual Keys)对照 - 滔Roy ...

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

Delphi 键盘常用参数(PC端和手机端 安卓/IOS)虚拟按键(Virtual Keys)对照

Delphi 键盘常用参数(PC端和手机端 安卓/IOS)虚拟按键(Virtual Keys)对照

常数名称(红色手机端)

十六进制值(前缀$)

十进制值 对应按键(手机端) Delphi编程表示(字符串型)_tzlin注
  0 0 大键盘Delete键 #0
VK_LBUTTON 1 1 鼠标的左键 #1
VK_RBUTTON 2 2 鼠标的右键 #2
VK-CANCEL 3 3 CtrlBreak(通常不需要处理) #3
VK_MBUTTON 4 4 鼠标的中键(三按键鼠标) #4
VK_BACK(vkHardwareBack) 8 8 Backspace键(back键) #8
VK_TAB 9 9 Tab键 #9
  0A 10 换行符 #10
VK_CLEAR 0C 12 Clear键(NumLock关闭时的数字键盘5) #12
VK_RETURN(vkReturn) 0D 13 Enter键(回车键) #13
VK_SHIFT 10 16 Shift键 #16
VK_CONTROL 11 17 Ctrl键 #17
VK_MENU(vkMenu) 12 18 Alt键(menu键) #18
VK_PAUSE 13 19 Pause键 #19
VK_CAPITAL 14 20 CapsLock键 #20
VK_ESCAPE 1B 27 Esc键 #27
VK_SPACE 20 32 Spacebar键 #32
VK_PRIOR 21 33 PageUp键 #33
VK_NEXT 22 34 PageDomw键 #34
VK_END 23 35 End键 #35
VK_HOME 24 36 Home键 #36
VK_LEFT 25 37 LEFTARROW键(←) #37
VK_UP 26 38 UPARROW键(↑) #38
VK_RIGHT 27 39 RIGHTARROW键(→) #39
VK_DOWN 28 40 DOWNARROW键(↓) #40
VK_Select 29 41 Select键 #41
VK_PRINT 2A 42   #42
VK_EXECUTE 2B 43 EXECUTE键 #43
VK_SNAPSHOT 2C 44 PrintScreen键(抓屏) #44
VK_Insert 2D 45 Ins键(NumLock关闭时的数字键盘0) #45
VK_Delete 2E 46 Del键(NumLock关闭时的数字键盘.) #46
VK_HELP 2F 47 Help键 #47
VK_0 30 48 0键 #48
VK_1 31 49 1键 #49
VK_2 32 50 2键 #50
VK_3 33 51 3键 #51
VK_4 34 52 4键 #52
VK_5 35 53 5键 #53
VK_6 36 54 6键 #54
VK_7 37 55 7键 #55
VK_8 38 56 8键 #56
VK_9 39 57 9键 #57
VK_A 41 65 A键 #65
VK_B 42 66 B键 #66
VK_C 43 67 C键 #67
VK_D 44 68 D键 #68
VK_E 45 69 E键 #69
VK_F 46 70 F键 #70
VK_G 47 71 G键 #71
VK_H 48 72 H键 #72
VK_I 49 73 I键 #73
VK_J 4A 74 J键 #74
VK_K 4B 75 K键 #75
VK_L 4C 76 L键 #76
VK_M 4D 77 M键 #77
VK_N 4E 78 N键 #78
VK_O 4F 79 O键 #79
VK_P 50 80 P键 #80
VK_Q 51 81 Q键 #81
VK_R 52 82 R键 #82
VK_S 53 83 S键 #83
VK_T 54 84 T键 #84
VK_U 55 85 U键 #85
VK_V 56 86 V键 #86
VK_W 57 87 W键 #87
VK_X 58 88 X键 #88
VK_Y 59 89 Y键 #89
VK_Z 5A 90 Z键 #90
VK_LWIN   91 左win键 #91
VK_RWIN   92 右win键 #92
VK_APPS   93 右Ctrl左边键,点击相当于点击鼠标右键,会弹出快捷菜单 #93
VK_NUMPAD0 60 96 数字键0键 #96
VK_NUMPAD1 61 97 数字键1键 #97
VK_NUMPAD2 62 98 数字键2键 #98
VK_NUMPAD3 62 99 数字键3键 #99
VK_NUMPAD4 64 100 数字键4键 #100
VK_NUMPAD5 65 101 数字键5键 #101
VK_NUMPAD6 66 102 数字键6键 #102
VK_NUMPAD7 67 103 数字键7键 #103
VK_NUMPAD8 68 104 数字键8键 #104
VK_NUMPAD9 69 105 数字键9键 #105
VK_MULTIPLY 6A 106 数字键盘上的*键 #106
VK_ADD 6B 107 数字键盘上的 #107
VK_SEPARATOR 6C 108 Separator键 #108
VK_SUBTRACT 6D 109 数字键盘上的-键 #109
VK_DECIMAL 6E 110 数字键盘上的.键 #110
VK_DIVIDE 6F 111 数字键盘上的/键 #111
VK_F1 70 112 F1键 #112
VK_F2 71 113 F2键 #113
VK_F3 72 114 F3键 #114
VK_F4 73 115 F4键 #115
VK_F5 74 116 F5键 #116
VK_F6 75 117 F6键 #117
VK_F7 76 118 F7键 #118
VK_F8 77 119 F8键 #119
VK_F9 78 120 F9键 #120
VK_F10 79 121 F10键 #121
VK_F11 7A 122 F11键 #122
VK_F12 7B 123 F12键 #123
VK_NUMLOCK 90 144 NumLock键 #144
VK_SCROLL 91 145 ScrollLock键 #145
    186 ;(分号) #186
    187 #NAME? #187
    188 ,键(逗号) #188
    189 -键(减号) #189
    190 .键(句号) #190
    191 /键 #191
    192 `键(Esc下面) #192
    219 [键 #219
    220 \键 #220
    221 ]键 #221
    222 \'键(引号) #222

 

Delphi 虚拟按键对照:

{ Virtual Keys, Standard Set }
  {$EXTERNALSYM VK_LBUTTON}
  VK_LBUTTON = 1;
  {$EXTERNALSYM VK_RBUTTON}
  VK_RBUTTON = 2;
  {$EXTERNALSYM VK_CANCEL}
  VK_CANCEL = 3;
  {$EXTERNALSYM VK_MBUTTON}
  VK_MBUTTON = 4;  { NOT contiguous with L & RBUTTON }
  {$EXTERNALSYM VK_BACK}
  VK_BACK = 8;
  {$EXTERNALSYM VK_TAB}
  VK_TAB = 9;
  {$EXTERNALSYM VK_CLEAR}
  VK_CLEAR = 12;
  {$EXTERNALSYM VK_RETURN}
  VK_RETURN = 13;
  {$EXTERNALSYM VK_SHIFT}
  VK_SHIFT = $10;
  {$EXTERNALSYM VK_CONTROL}
  VK_CONTROL = 17;
  {$EXTERNALSYM VK_MENU}
  VK_MENU = 18;
  {$EXTERNALSYM VK_PAUSE}
  VK_PAUSE = 19;
  {$EXTERNALSYM VK_CAPITAL}
  VK_CAPITAL = 20;
  {$EXTERNALSYM VK_KANA }
  VK_KANA = 21;
  {$EXTERNALSYM VK_HANGUL }
  VK_HANGUL = 21;
  {$EXTERNALSYM VK_JUNJA }
  VK_JUNJA = 23;
  {$EXTERNALSYM VK_FINAL }
  VK_FINAL = 24;
  {$EXTERNALSYM VK_HANJA }
  VK_HANJA = 25;
  {$EXTERNALSYM VK_KANJI }
  VK_KANJI = 25;
  {$EXTERNALSYM VK_CONVERT }
  VK_CONVERT = 28;
  {$EXTERNALSYM VK_NONCONVERT }
  VK_NONCONVERT = 29;
  {$EXTERNALSYM VK_ACCEPT }
  VK_ACCEPT = 30;
  {$EXTERNALSYM VK_MODECHANGE }
  VK_MODECHANGE = 31;
  {$EXTERNALSYM VK_ESCAPE}
  VK_ESCAPE = 27;
  {$EXTERNALSYM VK_SPACE}
  VK_SPACE = $20;
  {$EXTERNALSYM VK_PRIOR}
  VK_PRIOR = 33;
  {$EXTERNALSYM VK_NEXT}
  VK_NEXT = 34;
  {$EXTERNALSYM VK_END}
  VK_END = 35;
  {$EXTERNALSYM VK_HOME}
  VK_HOME = 36;
  {$EXTERNALSYM VK_LEFT}
  VK_LEFT = 37;
  {$EXTERNALSYM VK_UP}
  VK_UP = 38;
  {$EXTERNALSYM VK_RIGHT}
  VK_RIGHT = 39;
  {$EXTERNALSYM VK_DOWN}
  VK_DOWN = 40;
  {$EXTERNALSYM VK_SELECT}
  VK_SELECT = 41;
  {$EXTERNALSYM VK_PRINT}
  VK_PRINT = 42;
  {$EXTERNALSYM VK_EXECUTE}
  VK_EXECUTE = 43;
  {$EXTERNALSYM VK_SNAPSHOT}
  VK_SNAPSHOT = 44;
  {$EXTERNALSYM VK_INSERT}
  VK_INSERT = 45;
  {$EXTERNALSYM VK_DELETE}
  VK_DELETE = 46;
  {$EXTERNALSYM VK_HELP}
  VK_HELP = 47;
{ VK_0 thru VK_9 are the same as ASCII \'0\' thru \'9\' ($30 - $39) }
{ VK_A thru VK_Z are the same as ASCII \'A\' thru \'Z\' ($41 - $5A) }
  {$EXTERNALSYM VK_LWIN}
  VK_LWIN = 91;
  {$EXTERNALSYM VK_RWIN}
  VK_RWIN = 92;
  {$EXTERNALSYM VK_APPS}
  VK_APPS = 93;
  {$EXTERNALSYM VK_NUMPAD0}
  VK_NUMPAD0 = 96;
  {$EXTERNALSYM VK_NUMPAD1}
  VK_NUMPAD1 = 97;
  {$EXTERNALSYM VK_NUMPAD2}
  VK_NUMPAD2 = 98;
  {$EXTERNALSYM VK_NUMPAD3}
  VK_NUMPAD3 = 99;
  {$EXTERNALSYM VK_NUMPAD4}
  VK_NUMPAD4 = 100;
  {$EXTERNALSYM VK_NUMPAD5}
  VK_NUMPAD5 = 101;
  {$EXTERNALSYM VK_NUMPAD6}
  VK_NUMPAD6 = 102;
  {$EXTERNALSYM VK_NUMPAD7}
  VK_NUMPAD7 = 103;
  {$EXTERNALSYM VK_NUMPAD8}
  VK_NUMPAD8 = 104;
  {$EXTERNALSYM VK_NUMPAD9}
  VK_NUMPAD9 = 105;
  {$EXTERNALSYM VK_MULTIPLY}
  VK_MULTIPLY = 106;
  {$EXTERNALSYM VK_ADD}
  VK_ADD = 107;
  {$EXTERNALSYM VK_SEPARATOR}
  VK_SEPARATOR = 108;
  {$EXTERNALSYM VK_SUBTRACT}
  VK_SUBTRACT = 109;
  {$EXTERNALSYM VK_DECIMAL}
  VK_DECIMAL = 110;
  {$EXTERNALSYM VK_DIVIDE}
  VK_DIVIDE = 111;
  {$EXTERNALSYM VK_F1}
  VK_F1 = 112;
  {$EXTERNALSYM VK_F2}
  VK_F2 = 113;
  {$EXTERNALSYM VK_F3}
  VK_F3 = 114;
  {$EXTERNALSYM VK_F4}
  VK_F4 = 115;
  {$EXTERNALSYM VK_F5}
  VK_F5 = 116;
  {$EXTERNALSYM VK_F6}
  VK_F6 = 117;
  {$EXTERNALSYM VK_F7}
  VK_F7 = 118;
  {$EXTERNALSYM VK_F8}
  VK_F8 = 119;
  {$EXTERNALSYM VK_F9}
  VK_F9 = 120;
  {$EXTERNALSYM VK_F10}
  VK_F10 = 121;
  {$EXTERNALSYM VK_F11}
  VK_F11 = 122;
  {$EXTERNALSYM VK_F12}
  VK_F12 = 123;
  {$EXTERNALSYM VK_F13}
  VK_F13 = 124;
  {$EXTERNALSYM VK_F14}
  VK_F14 = 125;
  {$EXTERNALSYM VK_F15}
  VK_F15 = 126;
  {$EXTERNALSYM VK_F16}
  VK_F16 = 127;
  {$EXTERNALSYM VK_F17}
  VK_F17 = 128;
  {$EXTERNALSYM VK_F18}
  VK_F18 = 129;
  {$EXTERNALSYM VK_F19}
  VK_F19 = 130;
  {$EXTERNALSYM VK_F20}
  VK_F20 = 131;
  {$EXTERNALSYM VK_F21}
  VK_F21 = 132;
  {$EXTERNALSYM VK_F22}
  VK_F22 = 133;
  {$EXTERNALSYM VK_F23}
  VK_F23 = 134;
  {$EXTERNALSYM VK_F24}
  VK_F24 = 135;
  {$EXTERNALSYM VK_NUMLOCK}
  VK_NUMLOCK = 144;
  {$EXTERNALSYM VK_SCROLL}
  VK_SCROLL = 145;
{ 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. }
  {$EXTERNALSYM VK_LSHIFT}
  VK_LSHIFT = 160;
  {$EXTERNALSYM VK_RSHIFT}
  VK_RSHIFT = 161;
  {$EXTERNALSYM VK_LCONTROL}
  VK_LCONTROL = 162;
  {$EXTERNALSYM VK_RCONTROL}
  VK_RCONTROL = 163;
  {$EXTERNALSYM VK_LMENU}
  VK_LMENU = 164;
  {$EXTERNALSYM VK_RMENU}
  VK_RMENU = 165;
  {$EXTERNALSYM VK_PROCESSKEY}
  VK_PROCESSKEY = 229;
  {$EXTERNALSYM VK_ATTN}
  VK_ATTN = 246;
  {$EXTERNALSYM VK_CRSEL}
  VK_CRSEL = 247;
  {$EXTERNALSYM VK_EXSEL}
  VK_EXSEL = 248;
  {$EXTERNALSYM VK_EREOF}
  VK_EREOF = 249;
  {$EXTERNALSYM VK_PLAY}
  VK_PLAY = 250;
  {$EXTERNALSYM VK_ZOOM}
  VK_ZOOM = 251;
  {$EXTERNALSYM VK_NONAME}
  VK_NONAME = 252;
  {$EXTERNALSYM VK_PA1}
  VK_PA1 = 253;
  {$EXTERNALSYM VK_OEM_CLEAR}
  VK_OEM_CLEAR = 254;

 

  

 

 

创建时间:2019.06.27  更新时间:2019.06.27、2020.02.12、2021.06.28

 


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap