冰楓論壇

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

作者: lafeng666    時間: 2024-9-11 11:53
標題: TwMs v264.1 人物左右走
//TwMs v264.1 人物左右走
[ENABLE]
Alloc(AutoLRICSEntry,128,1410A4D2B)
Alloc(AutoLRMain,256,1410A4D2B)
Alloc(AutoLRRange,08,1410A4D2B)
Alloc(AutoLRValue,08,1410A4D2B)
Label(ICSReturn)
Label(GoLeft)
Label(GoRight)

AutoLRRange:
DQ #50 //此為左右走之範圍,請自行依需求設定。

AutoLRICSEntry:
push rax
mov rax,1410A4D2B
cmp [rsp+08],rax
jne ICSReturn
mov rax,AutoLRMain
mov [rsp+08],rax

ICSReturn:
pop rax
jmp GetFocus

AutoLRMain:
cmp [AutoLRRange],0
je 1410A4D2B
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 1410A4D4F

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

147DF5210:
DQ AutoLRICSEntry

[DISABLE]
147DF5210:
DQ GetFocus

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





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