prt 發表於 2017-10-18 10:25:27

TwMS v202.1 人物左右走 [ICS]

本帖最後由 prt 於 2017-10-18 10:27 編輯

//TwMS 202.1_ICS人物左右走



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
//-----------------------------------------------
AutoLRICSEntry:
Cmp   , 0086594C
Jne   ICSReturn
Mov   , AutoLRMain
ICSReturn:
Jmp   GetFocus
//-------------------
AutoLRMain:
Cmp   , 0
Je 0086594C
Push  Eax
Inc   
Mov   Eax,
Cmp   Eax,
Jge   GoLeft
Add   Eax,
Cmp   Eax,
Jge   GoRight
Mov   , 1
Jmp   GoLeft

GoLeft:
Mov   , FFFFFFFF
Pop   Eax
Jmp   00865F43

GoRight:
Mov   , 00000001
Pop   Eax
Jmp   00865F43
//-----------------------------------------------


030715C0:
DD AutoLRICSEntry

030715C0:
DD GetFocus

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

wang_ziyan 發表於 2017-11-13 00:05:34

請問怎麼修改距離

no9981727 發表於 2017-11-20 15:03:21

感謝哩 找好久
頁: [1]
查看完整版本: TwMS v202.1 人物左右走 [ICS]