這個兩個功能鍵的定義可以通過改變注冊表的方式來完成,過程如下:
1、創建一個*.REG的注冊表文件,文件里面包含下面內容:
[HKEY_LOCAL_MACHINE\HARDWARE\DEVICEMAP\KEYBD]
"GreenKeyOverride"=dword:0000001e
"RedKeyOverride"=dword:00000030
2、修改對應的dword的值,來定義綠鍵和紅鍵的功能。
上例中,0000001e是A鍵,00000030是B鍵
3、復制這個注冊表文件到Application文件夾下。
4、點擊這個文件,注冊。
5、熱啟動MC32N0(長按電源鍵,直到重啟)。
附Zebra MC32N0的定義鍵值:
#define SC_AKEY 0x1e
#define SC_BKEY 0x30
#define SC_CKEY 0x2e
#define SC_DKEY 0x20
#define SC_EKEY 0x12
#define SC_FKEY 0x21
#define SC_GKEY 0x22
#define SC_HKEY 0x23
#define SC_IKEY 0x17
#define SC_JKEY 0x24
#define SC_KKEY 0x25
#define SC_LKEY 0x26
#define SC_MKEY 0x32
#define SC_NKEY 0x31
#define SC_OKEY 0x18
#define SC_PKEY 0x19
#define SC_QKEY 0x10
#define SC_RKEY 0x13
#define SC_SKEY 0x1f
#define SC_TKEY 0x14
#define SC_UKEY 0x16
#define SC_VKEY 0x2f
#define SC_WKEY 0x11
#define SC_XKEY 0x2d
#define SC_YKEY 0x15
#define SC_ZKEY 0x2c
#define SC_1KEY 0x02 /* numeral keys on top row */
#define SC_2KEY 0x03
#define SC_3KEY 0x04
#define SC_4KEY 0x05
#define SC_5KEY 0x06
#define SC_6KEY 0x07
#define SC_7KEY 0x08
#define SC_8KEY 0x09
#define SC_9KEY 0x0a
#define SC_0KEY 0x0b /* zero */
#define SC_NP1 0x4f /* numeral keys on num pad */
#define SC_NP2 0x50
#define SC_NP3 0x51
#define SC_NP4 0x4b
#define SC_NP5 0x4c
#define SC_NP6 0x4d
#define SC_NP7 0x47
#define SC_NP8 0x48
#define SC_NP9 0x49
#define SC_NP0 0x52 /* zero */
#define SC_NPPERIOD 0x53
#define SC_NPFSLASH 0x35 /* same as other forward slash */
#define SC_NPASTERIX 0x37
#define SC_NPSUBTRACT 0x4a
#define SC_NPADD 0x4e
#define SC_NPENTER 0x1c /* same as other enter key */
#define SC_NPSPACE 0x54
#define SC_F1 0x3b
#define SC_F2 0x3c
#define SC_F3 0x3d
#define SC_F4 0x3e
#define SC_F5 0x3f
#define SC_F6 0x40
#define SC_F7 0x41
#define SC_F8 0x42
#define SC_F9 0x43
#define SC_F10 0x44
#define SC_F11 0x57
#define SC_F12 0x58
#define SC_F13 0x59
#define SC_F14 0x5a
#define SC_GREENKEY 0x5a /* Gemini Greek Key */
#define SC_F15 0x5e
#define SC_REDKEY 0x5e /* Gemini Red Key */
#define SC_F23 0x60
#define SC_RWIN 0x5c
#define SC_APPS 0x5f
#define SC_LCONTROL 0x1d
#define SC_LSHIFT 0x2a
#define SC_RSHIFT 0x36
#define SC_LMENU 0x38 /* left alt */
#define SC_LWIN 0x5b
#define SC_ENTERKEY 0x1c
#define SC_BACKSPACE 0x0e
#define SC_PERIOD 0x34
#define SC_PLUSKEY 0x4e /* on num pad */
#define SC_MINUSKEY 0x4a /* on num pad */
#define SC_QUOTE 0x28
#define SC_TILDAKEY 0x29
#define SC_FSLASH 0x35
#define SC_BSLASH 0x2b
#define SC_EQUALKEY 0x0d
#define SC_ESCAPEKEY 0x01
#define SC_PLUS SC_PLUSKEY /* same as numpad + */
#define SC_MINUS 0x0c
#define SC_COMMAKEY 0x33
#define SC_GRKEY 0x27
#define SC_SEMICOLON 0x27
#define SC_LEFTARROW 0x4b
#define SC_RIGHTARROW 0x4d
#define SC_UPARROW 0x48 /* e0-48 */
#define SC_DOWNARROW 0x50 /* e0-50 */
#define SC_CAPSLOCK 0x3a
#define SC_NUMLOCK 0x45
#define SC_SCROLLLOCK 0x46
#define SC_PAGEUP 0x49
#define SC_PAGEDOWN 0x51
#define SC_HOME 0x47
#define SC_ENDKEY 0x4f
#define SC_INSERTKEY 0x52
#define SC_DELETEKEY 0x53
#define SC_ASTERIX 0x37 /* on num pad */
#define SC_SPACEKEY 0x39
#define SC_LBRACKET 0x1a
#define SC_RBRACKET 0x1b
#define SC_TABKEY 0x0f
/* Propriatary Scan Codes */
#define SC_LampKey 0x64 /* Proprietary */
#define SC_MenuKey 0x43 /* Proprietary */
#define SC_SendKey 0x44 /* Proprietary */
#define SC_Function 0x61 /* Proprietary */
#define SC_Calibrate 0x62 /* Proprietary */
#define SC_Clear 0x01 /* Proprietary - mapped to escape */
#define SC_ContrastUp 0x65 /* Proprietary */
#define SC_ContrastDn 0x66 /* Proprietary */
#define SC_Trigger 0x67 /* Propriatary */
#define SC_VolumeUp 0x68 /* Propriatary */
#define SC_VolumeDn 0x69 /* Propriatary */
#define SC_App1 0x6a /* Propriatary */
#define SC_App2 0x6b /* Propriatary */
#define SC_App3 0x6c /* Propriatary */
#define SC_App4 0x6d /* Propriatary */
#define SC_DoNothing 0x6e /* Propriatary */
#define SC_Alpha 0x6f /* Propriatary */
#define SC_Degree 0x70 /* Propriatary */
#define SC_Trigger1 SC_Trigger /* Propriatary */
#define SC_Trigger2 0x71 /* Propriatary */
#define SC_Trigger3 0x72 /* Propriatary */
#define SC_Trigger4 0x73 /* Propriatary */
#define SC_Trigger5 0x74 /* Propriatary */
#define SC_KeyLight 0x75 /* Propriatary */
#define SC_BacklightUp 0x76 /* Proprietary */
#define SC_BacklightDn 0x77 /* Proprietary */
#define SC_POUND 0x78 /* Proprietary */
#define SC_SYM 0x79
#define SC_Start 0x7A
#define SC_Inbox 0x7B
#define SC_OK 0x7C
#define SC_Mute 0x7D
#define SC_ORANGEKEY 0x7E /* Proprietary */
#define SC_RTLOG 0x7F