冰楓論壇

標題: TwMs v261.3 人物左右走 [打印本頁]

作者: btb    時間: 2024-5-30 00:05
標題: TwMs v261.3 人物左右走
//TwMs v261.3 人物左右走
[ENABLE]
Alloc(AutoLRICSEntry,128,140E7F450)
Alloc(AutoLRRange,08,140E7F450)
Alloc(AutoLRMain,256,140E7F450)
Alloc(AutoLRValue,08,140E7F450)
Label(ICSReturn)
Label(GoLeft)
Label(GoRight)


AutoLRRange:
DQ A  //16進制 A=10 設置0為不左右走

AutoLRICSEntry:
push rax
mov rax,140E7F450
cmp [rsp+08],rax
jne ICSReturn
mov rax,AutoLRMain
mov [rsp+08],rax
ICSReturn:
pop rax
jmp GetFocus

AutoLRMain:
cmp [AutoLRRange], 0
je 140E7F450
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 byte ptr [rbp-0A],00
mov [rbp+000000E0],FFFFFFFF
jmp 140E7F47F

GoRight:
mov byte ptr [rbp-0A],00
mov [rbp+000000E0],01
jmp 140E7F47F

147874E40:
DQ AutoLRICSEntry

[DISABLE]
147874E40:
DQ GetFocus

DeAlloc(AutoLRMain)
DeAlloc(AutoLRValue)
DeAlloc(AutoLRRange)
DeAlloc(AutoLRICSEntry)






歡迎光臨 冰楓論壇 (https://bingfong.com/) Powered by 冰楓