lafeng666 發表於 2024-9-11 11:53:39

TwMs v264.1 人物左右走

//TwMs v264.1 人物左右走

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 ,rax
jne ICSReturn
mov rax,AutoLRMain
mov ,rax

ICSReturn:
pop rax
jmp GetFocus

AutoLRMain:
cmp ,0
je 1410A4D2B
inc
mov eax,
cmp eax,
jge GoLeft
add eax,
cmp eax,
jge GoRight
mov ,1
jmp GoLeft

GoLeft:
mov byte ptr ,00
mov ,FFFFFFFF
jmp 1410A4D4F

GoRight:
mov byte ptr ,00
mov ,01
jmp 1410A4D4F

147DF5210:
DQ AutoLRICSEntry


147DF5210:
DQ GetFocus

DeAlloc(AutoLRICSEntry)
DeAlloc(AutoLRMain)
DeAlloc(AutoLRRange)
DeAlloc(AutoLRValue)
頁: [1]
查看完整版本: TwMs v264.1 人物左右走