- UID
- 175467
- 帖子
- 24482
- 主題
- 1252
- 精華
- 0
- 積分
- 3011
- 楓幣
- 5317
- 威望
- 2429
- 存款
- 137915
- 贊助金額
- 1500
- 推廣
- 0
- GP
- 6050
- 閱讀權限
- 150
- 在線時間
- 4149 小時
- 註冊時間
- 2017-1-18
- 最後登入
- 2024-11-20
|
//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)
|
|