常數值描述
vbkeylbutton 0x1 滑鼠左鍵
vbkeyrbutton 0x2 滑鼠右鍵
vbkeycancel 0x3 cancel 鍵
vbkeymbutton 0x4 滑鼠中鍵
vbkeyback 0x8 backspace 鍵
vbkeytab 0x9 tab 鍵
vbkeyclear 0xc clear 鍵
vbkeyreturn 0xd enter 鍵
vbkeyshift 0x10 shift 鍵
vbkeycontrol 0x11 ctrl 鍵
vbkeymenu 0x12 menu 鍵
vbkeypause 0x13 pause 鍵
vbkeycapital 0x14 caps lock 鍵
vbkeyescape 0x1b esc 鍵
vbkeyspace 0x20 spacebar 鍵
vbkeypageup 0x21 page up 鍵
vbkeypagedown 0x22 page down 鍵
vbkeyend 0x23 end 鍵
vbkeyhome 0x24 home 鍵
vbkeyleft 0x25 left arrow 鍵
vbkeyup 0x26 up arrow 鍵
vbkeyright 0x27 right arrow 鍵
vbkeydown 0x28 down arrow 鍵
vbkeyselect 0x29 select 鍵
vbkeyprint 0x2a print screen 鍵
vbkeyexecute 0x2b execute 鍵
vbkeysnapshot 0x2c snapshot 鍵
vbkeyinsert 0x2d insert 鍵
vbkeydelete 0x2e delete 鍵
vbkeyhelp 0x2f help 鍵
vbkeynumlock 0x90 num lock 鍵
a至z 鍵與a-z字母的ascii 碼相同:
常數值描述
vbkeya 65 a 鍵
vbkeyb 66 b 鍵
vbkeyc 67 c 鍵
vbkeyd 68 d 鍵
vbkeye 69 e 鍵
vbkeyf 70 f 鍵
vbkeyg 71 g 鍵
vbkeyh 72 h 鍵
vbkeyi 73 i 鍵
vbkeyj 74 j 鍵
vbkeyk 75 k 鍵
vbkeyl 76 l 鍵
vbkeym 77 m 鍵
vbkeyn 78 n 鍵
vbkeyo 79 o 鍵
vbkeyp 80 p 鍵
vbkeyq 81 q 鍵
vbkeyr 82 r 鍵
vbkeys 83 s 鍵
vbkeyt 84 t 鍵
vbkeyu 85 u 鍵
vbkeyv 86 v 鍵
vbkeyw 87 w 鍵
vbkeyx 88 x 鍵
vbkeyy 89 y 鍵
vbkeyz 90 z 鍵
0至9鍵與數字0-9的ascii 碼相同:
常數值描述
vbkey0 48 0 鍵
vbkey1 49 1 鍵
vbkey2 50 2 鍵
vbkey3 51 3 鍵
vbkey4 52 4 鍵
vbkey5 53 5 鍵
vbkey6 54 6 鍵
vbkey7 55 7 鍵
vbkey8 56 8 鍵
vbkey9 57 9 鍵
下列常數代表數字鍵盤上的鍵:
常數值描述
vbkeynumpad0 0x60 0 鍵
vbkeynumpad1 0x61 1 鍵
vbkeynumpad2 0x62 2 鍵
vbkeynumpad3 0x63 3 鍵
vbkeynumpad4 0x64 4 鍵
vbkeynumpad5 0x65 5 鍵
vbkeynumpad6 0x66 6 鍵
vbkeynumpad7 0x67 7 鍵
vbkeynumpad8 0x68 8 鍵
vbkeynumpad9 0x69 9 鍵
vbkeymultiply 0x6a multiplication sign (*) 鍵
vbkeyadd 0x6b plus sign (+) 鍵
vbkeyseparator 0x6c enter 鍵
vbkeysubtract 0x6d minus sign (-) 鍵
vbkeydecimal 0x6e decimal point (.) 鍵
vbkeydivide 0x6f division sign (/) 鍵
下列常數代表功能鍵:
常數值描述
vbkeyf1 0x70 f1 鍵
vbkeyf2 0x71 f2 鍵
vbkeyf3 0x72 f3 鍵
vbkeyf4 0x73 f4 鍵
vbkeyf5 0x74 f5 鍵
vbkeyf6 0x75 f6 鍵
vbkeyf7 0x76 f7 鍵
vbkeyf8 0x77 f8 鍵
vbkeyf9 0x78 f9 鍵
vbkeyf10 0x79 f10 鍵
vbkeyf11 0x7a f11 鍵
vbkeyf12 0x7b f12 鍵
vbkeyf13 0x7c f13 鍵
vbkeyf14 0x7d f14 鍵
vbkeyf15 0x7e f15 鍵
vbkeyf16 0x7f f16 鍵
鍵盤上各鍵位所對應的ASCII碼詳單 鍵盤鍵位表
常數值描述 vbkeylbutton 0x1 滑鼠左鍵 vbkeyrbutton 0x2 滑鼠右鍵 vbkeycancel 0x3 cancel 鍵 vbkeymbutton 0x4 滑鼠中鍵 vbkeyback 0x8 backspace 鍵 vbkeytab 0x9 tab 鍵 vbkeycle...
鍵盤上各鍵位所對應的ASCII碼詳單 鍵盤鍵位表
常數值描述 vbkeylbutton 0x1 滑鼠左鍵 vbkeyrbutton 0x2 滑鼠右鍵 vbkeycancel 0x3 cancel 鍵 vbkeymbutton 0x4 滑鼠中鍵 vbkeyback 0x8 backspace 鍵 vbkeytab 0x9 tab 鍵 vbkeycle...
鍵盤上各鍵對應的ASCII碼值
0x1 滑鼠左鍵 0x2 滑鼠右鍵 0x3 cancel 鍵 0x4 滑鼠中鍵 0x8 backspace 鍵 0x9 tab 鍵 0xc clear 鍵 0xd enter 鍵 0x10 shift 鍵 0x11 ctrl 鍵 0x12 menu 鍵 0x13 pause 鍵 0x14 caps ...