未經本站文章所有人之同意者,隨意轉載、改作、散布者,已觸犯著作權法;
若要分享需先經過文章所有人同意後並標註資料來源。

2015-07-21

TwMS_v181.3_ICS_人物左右走

//TwMS_v181.3_ICS_人物左右走
//更新:Boby

[Enable]
RegisterSymbol(AutoLRMain)
RegisterSymbol(AutoLRRange)
Alloc(AutoLRICSEntry, 64)
Alloc(AutoLRRange, 4)
Alloc(AutoLRValue, 4)
Alloc(AutoLRMain, 128)
Label(GoLeft)
Label(GoRight)
Label(ICSReturn)


AutoLRRange:
DD #10   //距離

AutoLRICSEntry:
Cmp [Esp],00FEA4B4
Jne ICSReturn
Mov [Esp],AutoLRMain
ICSReturn:
Jmp GetFocus

AutoLRMain:
Cmp [AutoLRRange], 0
Je 00FEA4B4
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-14],FFFFFFFF
Pop Eax
Jmp 00FEA915
GoRight:
Mov [Ebp-14],00000001
Pop Eax
Jmp 00FEA915

01857480:
DD AutoLRICSEntry

[Disable]
01857480:
DD GetFocus

Dealloc(AutoLRICSEntry)
Dealloc(AutoLRMain)
Dealloc(AutoLRRange)
Dealloc(AutoLRValue)
UnregisterSymbol(AutoLRRange)
UnregisterSymbol(AutoLRMain)

沒有留言:

張貼留言