冰楓論壇
標題:
TwMS v238.2 人物左右走
[打印本頁]
作者:
prt
時間:
2021-10-20 23:05
標題:
TwMS v238.2 人物左右走
本帖最後由 prt 於 2021-10-21 21:57 編輯
// TwMS v238.2 ICS 人物左右走
[ENABLE]
Alloc(AutoLRICSEntry, 64)
Label(ICSReturn)
RegisterSymbol(AutoLRMain)
Alloc(AutoLRMain, 128)
Label(GoLeft)
Label(GoRight)
RegisterSymbol(AutoLRRange)
Alloc(AutoLRRange, 4)
Alloc(AutoLRValue, 4)
//-----------------------------------------------
AutoLRRange:
DD A //16進制 A=10 設置0為不左右走
//-----------------------------------------------
AutoLRICSEntry:
cmp [esp],00C6E6D1
jne ICSReturn
mov [esp],AutoLRMain
ICSReturn:
jmp GetFocus
//-------------------
AutoLRMain:
cmp [AutoLRRange], 0
je 00C6E6D1
push eax
inc [AutoLRValue]
mov eax,[AutoLRRange]
cmp eax,[AutoLRValue]
jge GoLeft
add eax,[AutoLRRange]
cmp eax,[AutoLRValue]
jge GoRight
mov [AutoLRValue],1
jmp GoLeft
GoLeft:
mov [ebp-18],FFFFFFFF
pop eax
jmp 00C6E793
GoRight:
mov [ebp-18],00000001
pop eax
jmp 00C6E793
05250B70:
DD AutoLRICSEntry
[DISABLE]
05250B70:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
複製代碼
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓