#define vk_lbutton 0x01
#define vk_rbutton 0x02
#define vk_cancel 0x03
#define vk_mbutton 0x04
#define vk_back 0x08
#define vk_tab 0x09
#define vk_clear 0x0c
#define vk_return 0x0d
#define vk_shift 0x10
#define vk_control 0x11
#define vk_menu 0x12
#define vk_pause 0x13
#define vk_capital 0x14
#define vk_kana 0x15
#define vk_hangeul 0x15
#define vk_hangul 0x15
#define vk_junja 0x17
#define vk_final 0x18
#define vk_hanja 0x19
#define vk_kanji 0x19
#define vk_escape 0x1b
#define vk_convert 0x1c
#define vk_nonconvert 0x1d
#define vk_accept 0x1e
#define vk_modechange 0x1f
#define vk_space 0x20
#define vk_prior 0x21
#define vk_next 0x22
#define vk_end 0x23
#define vk_home 0x24
#define vk_left 0x25
#define vk_up 0x26
#define vk_right 0x27
#define vk_down 0x28
#define vk_select 0x29
#define vk_print 0x2a
#define vk_execute 0x2b
#define vk_snapshot 0x2c
#define vk_insert 0x2d
#define vk_delete 0x2e
#define vk_help 0x2f
/* vk_0 thru vk_9 are the same as ascii '0' thru '9' (0x30 - 0x39) */
/* vk_a thru vk_z are the same as ascii 'a' thru 'z' (0x41 - 0x5a) */
#define vk_lwin 0x5b
#define vk_rwin 0x5c
#define vk_numpad0 0x60
#define vk_numpad1 0x61
#define vk_numpad2 0x62
#define vk_numpad3 0x63
#define vk_numpad4 0x64
#define vk_numpad5 0x65
#define vk_numpad6 0x66
#define vk_numpad7 0x67
#define vk_numpad8 0x68
#define vk_numpad9 0x69
#define vk_multiply 0x6a
#define vk_add 0x6b
#define vk_separator 0x6c
#define vk_subtract 0x6d
#define vk_decimal 0x6e
#define vk_divide 0x6f
#define vk_f1 0x70
#define vk_f2 0x71
#define vk_f3 0x72
#define vk_f4 0x73
#define vk_f5 0x74
#define vk_f6 0x75
#define vk_f7 0x76
#define vk_f8 0x77
#define vk_f9 0x78
#define vk_f10 0x79
#define vk_f11 0x7a
#define vk_f12 0x7b
#define vk_f13 0x7c
#define vk_f14 0x7d
#define vk_f15 0x7e
#define vk_f16 0x7f
#define vk_f17 0x80
#define vk_f18 0x81
#define vk_f19 0x82
#define vk_f20 0x83
#define vk_f21 0x84
#define vk_f22 0x85
#define vk_f23 0x86
#define vk_f24 0x87
#define vk_numlock 0x90
#define vk_scroll 0x91
a 至 z 鍵與 a – z 字母的 ascii 碼相同:
值 描述/r
65 a 鍵/r
66 b 鍵/r
67 c 鍵/r
68 d 鍵/r
69 e 鍵/r
70 f 鍵/r
71 g 鍵/r
72 h 鍵/r
73 i 鍵/r
74 j 鍵/r
75 k 鍵/r
76 l 鍵/r
77 m 鍵/r
78 n 鍵/r
79 o 鍵/r
80 p 鍵/r
81 q 鍵/r
82 r 鍵/r
83 s 鍵/r
84 t 鍵/r
85 u 鍵/r
86 v 鍵/r
87 w 鍵/r
88 x 鍵/r
89 y 鍵/r
90 z 鍵/r
0 至 9 鍵與數字 0 – 9 的 ascii 碼相同:
值 描述/r
48 0 鍵/r
49 1 鍵/r
50 2 鍵/r
51 3 鍵/r
52 4 鍵/r
53 5 鍵/r
54 6 鍵/r
55 7 鍵/r
56 8 鍵/r
57 9 鍵/r
下列常數代表數字鍵盤上的鍵:
值 描述/r
0x60 0 鍵/r
0x61 1 鍵/r
0x62 2 鍵/r
0x63 3 鍵/r
0x64 4 鍵/r
0x65 5 鍵/r
0x66 6 鍵/r
0x67 7 鍵/r
0x68 8 鍵/r
0x69 9 鍵/r
虛擬鍵值表
虛擬鍵 十六進製制值 十進位制值 相應鍵盤或滑鼠鍵 vk lbutton011 滑鼠左鍵 vk rbutton022 滑鼠右鍵 vk cancel033 ctrl break鍵 vk mbutton044 滑鼠中鍵 vk back088 backspace鍵 vk tab099 tab鍵 vk cl...
虛擬鍵值表
虛擬鍵值表 albert 虛擬鍵十六進製制值 十進位制值 相應鍵盤或滑鼠鍵 vk lbutton11 滑鼠左鍵 vk rbutton22 滑鼠右鍵 vk cancel33 ctrl break鍵 vk mbutton44 滑鼠中鍵 vk back88 backspace鍵 vk tab99 tab鍵...
虛擬鍵值表
虛擬鍵值表 2009 08 01 12 54 2006 12 21 18 42 虛擬鍵十六進製制值 十進位制值 相應鍵盤或滑鼠鍵 vk lbutton011 滑鼠左鍵 vk rbutton022 滑鼠右鍵 vk cancel033 ctrl break鍵 vk mbutton044 滑鼠中鍵 vk ...