冰楓論壇
標題:
TwMS v230.3 ICS 人物左右走
[打印本頁]
作者:
prt
時間:
2020-12-23 20:23
標題:
TwMS v230.3 ICS 人物左右走
// TwMS v230.3 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],00B9E186
jne ICSReturn
mov [esp],AutoLRMain
ICSReturn:
jmp GetFocus
//-------------------
AutoLRMain:
cmp [AutoLRRange], 0
je 00B9E186
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-1C],FFFFFFFF
pop eax
jmp 00B9E248
GoRight:
mov [ebp-1C],00000001
pop eax
jmp 00B9E248
0458DE18:
DD AutoLRICSEntry
[DISABLE]
0458DE18:
DD GetFocus
Dealloc(AutoLRICSEntry)
UnregisterSymbol(AutoLRMain)
Dealloc(AutoLRMain)
UnregisterSymbol(AutoLRRange)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
複製代碼
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓