VC 鍵盤 虛擬鍵碼表

2021-06-06 10:21:27 字數 1386 閱讀 4736

//字元按鍵

#define vk_a  0x41

#define vk_b  0x42

#define vk_c  0x43

#define vk_d  0x44

#define vk_e  0x45

#define vk_f  0x46

#define vk_g  0x47

#define vk_h  0x48

#define vk_i  0x49

#define vk_j  0x50

#define vk_k  0x51

#define vk_l  0x52

#define vk_m  0x53

#define vk_n  0x54

#define vk_o  0x55

#define vk_p  0x56

#define vk_q  0x57

#define vk_r  0x58

#define vk_s  0x59

#define vk_t  0x60

#define vk_u  0x61

#define vk_v  0x62

#define vk_w  0x63

#define vk_x  0x64

#define vk_y  0x65

#define vk_z  0x66

//以下為功能鍵

#define vk_control 0x11

#define vk_shift 0x10

#define vk_menu 0x12   //alt鍵

#define vk_tab 0x09

#define vk_back 0x08  //backspace鍵

#define vk_return 0x0d //enter(回車)

#define vk_escape 0x1b  //esc鍵

#define vk_space 0x20  //space

#define vk_prior 0x21  //page up

#define vk_next  0x22   //page down

#define vk_end   0x23   //end

#define vk_home  0x24   //home

#define vk_left  0x25    //left

#define vk_up    0x26     //up

#define vk_right 0x27   //right

#define vk_down  0x28    //down

#define vk_insert  0x2d   //insert

#define vk_delete  0x2e   //delete

鍵盤虛擬鍵值編碼表

模擬鍵盤輸入首先要用到乙個api函式 keybd event。我們是菜鳥,所以不必具體去理解它的詳細用法,只要按以下方法使用即可了!呵呵!模擬按鍵有兩個基本動作,即按下鍵和放開按鍵,所以我們每模擬一次按鍵就要呼叫兩次該api函式,其方法是 例子1 模擬按下 a 鍵 keybd event 65,0,...

安卓手機鍵碼表

鍵英文名 鍵中文名 鍵 鍵型別 keycode call 撥號鍵5 鍵keycode endcall 掛機鍵6 keycode home 按鍵home 3keycode menu 菜單鍵82 keycode back 返回鍵4 keycode search 搜尋鍵84 keycode camera ...

鍵盤鍵碼常數

鍵碼常數 鍵碼常數 值 描述 vbkeylbutton 1 滑鼠左鍵 vbkeyrbutton 2 滑鼠右鍵 vbkeycancel 3 cancel 鍵 vbkeymbutton 4 滑鼠中鍵 vbkeyback 8 backspace 鍵 vbkeytab 9 tab 鍵 vbkeyclear ...