- UID
- 175467
- 帖子
- 24521
- 主題
- 1257
- 精華
- 0
- 積分
- 3023
- 楓幣
- 7024
- 威望
- 2439
- 存款
- 137915
- 贊助金額
- 1500
- 推廣
- 0
- GP
- 6072
- 閱讀權限
- 150
- 在線時間
- 4188 小時
- 註冊時間
- 2017-1-18
- 最後登入
- 2024-11-29
|
//TwMs v260.4 取得Virtual-Key Codes和鍵盤掃描碼
//效果:按一下,鍵盤上的按鍵,即可取得Virtual-Key Codes和鍵盤掃描碼
[ENABLE]
RegisterSymbol(VirtualKeyCodes)
RegisterSymbol(KeyboardID)
Alloc(GetKeyboardID,128,1445EE03E)
Alloc(VirtualKeyCodes,08)
Alloc(KeyboardID,08)
GetKeyboardID:
mov ecx,eax
mov edx,r15d
mov [VirtualKeyCodes],ebx
mov [KeyboardID],r15
jmp 1445EE03E+5
1445EE03E:
jmp GetKeyboardID
[DISABLE]
1445EE03E:
mov ecx,eax
mov edx,r15d
UnRegisterSymbol(VirtualKeyCodes)
UnRegisterSymbol(KeyboardID)
DeAlloc(GetKeyboardID)
DeAlloc(KeyboardID)
DeAlloc(VirtualKeyCodes)
|
|