Opeple0627 發表於 2019-9-18 16:24:15

TwMS v219.2 ICS 人物左右走+紅點斷線

//TwMS v219.2 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 0        //距離 16進制 A=10   設置0為不左右走
//-----------------------------------------------
AutoLRICSEntry:
Cmp   , 009DF153               
Jne   ICSReturn
Mov   , AutoLRMain
ICSReturn:
Jmp   GetFocus
//-------------------
AutoLRMain:
//不要紅點停止請刪除以下
Push Ebx
mov ebx,
Mov Ebx,
Cmp Ebx,         3 //紅點人數:1人(自己也要算+1)
Pop Ebx
Jge GetFocus
//不要紅點停止請刪除以上
Cmp   , 0
Je 009DF153               
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   009DEF75               

GoRight:
Mov   , 00000001
Pop   Eax
Jmp   009DEF75               
//-----------------------------------------------
03DBFE80:
DD AutoLRICSEntry

03DBFE80:               
DD GetFocus

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

頁: [1]
查看完整版本: TwMS v219.2 ICS 人物左右走+紅點斷線