冰楓論壇
標題:
TwMs v246.3 AutoKey
[打印本頁]
作者:
邏輯不清晰
時間:
2022-10-11 14:43
標題:
TwMs v246.3 AutoKey
//TwMs v246.3 AutoKey
//左右鍵 搭配攻擊和拾取鍵
[ENABLE]
aobscanmodule(myhook,MapleStory.exe,E8 A7 5E FF FF) // should be unique
alloc(newmem,$1000,myhook)
label(code)
label(return)
//r8 keycode
//r9 PressCode
newmem:
//判斷按鍵是否為方向鍵左右
code:
cmp r8,27
je func
cmp r8,25
je func
call MapleStory.exe+3D328B0
jmp return
//若是方向鍵左右 則釋放 ctrl、shift、z
func:
mov r9,2C0000
mov r8,5A //Z
mov edx,00000100
mov rcx,[MapleStory.exe+5D9D4E0]
call MapleStory.exe+3D328B0
mov r9,001D0030
mov r8,11 //CTRL
mov edx,00000100
mov rcx,[MapleStory.exe+5D9D4E0]
call MapleStory.exe+3D328B0
mov r9,002A0003
mov r8,10 //SHIFT
mov edx,00000100
mov rcx,[MapleStory.exe+5D9D4E0]
call MapleStory.exe+3D328B0
jmp return
myhook:
jmp newmem
return:
registersymbol(myhook)
[DISABLE]
myhook:
db E8 A7 5E FF FF
unregistersymbol(myhook)
dealloc(newmem)
複製代碼
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓