- UID
- 175467
- 帖子
- 24488
- 主題
- 1254
- 精華
- 0
- 積分
- 3014
- 楓幣
- 5421
- 威望
- 2431
- 存款
- 137915
- 贊助金額
- 1500
- 推廣
- 0
- GP
- 6055
- 閱讀權限
- 150
- 在線時間
- 4161 小時
- 註冊時間
- 2017-1-18
- 最後登入
- 2024-11-22
|
//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)
|
|