冰楓論壇
標題:
TwMS v250.1 AutoKey
[打印本頁]
作者:
prt
時間:
2023-3-5 02:41
標題:
TwMS v250.1 AutoKey
//TwMs v250.1 AutoKey
//左右鍵 搭配攻擊和拾取鍵
[ENABLE]
aobscanmodule(myhook,MapleStory.exe,E8 42 4E FF FF) // should be unique
alloc(newmem,$1000,myhook)
label(code)
label(return)
//r8 PressCode
//edx keycode
newmem:
//判斷按鍵是否為方向鍵左右
code:
cmp r8,27
je func
cmp r8,25
je func
call 14443A3A0
jmp return
//若是方向鍵左右 則釋放 c、shift、z
func:
mov r8, 001D0030//Ctrl
mov edx,11
mov rcx,[146726B78]
call 143F85EA0
mov r8, 2C0000//Z
mov edx,5A
mov rcx,[146726B78]
call 143F85EA0
mov r8,002A0003
mov edx,10 //SHIFT
mov rcx,[146726B78]
call 143F85EA0
jmp return
myhook:
jmp newmem
return:
registersymbol(myhook)
[DISABLE]
myhook:
db E8 42 4E FF FF
unregistersymbol(myhook)
dealloc(newmem)
複製代碼
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓