//==============================
//TWNS130 [ICS]人物自動左右
//原作:屌王
//更新:cutebaby0487
//==============================
[ENABLE]
registersymbol(AwesomeMan)
alloc(AwesomeMan,1024)
registersymbol(MyAuto)
alloc(MyAuto,1024)
registersymbol(MyAutoLR)
alloc(MyAutoLR,1024)
registersymbol(MyAutoLRKey)
alloc(MyAutoLRKey,4)
registersymbol(MyAutoLRKeyLR)
alloc(MyAutoLRKeyLR,4)
label(MyAutoLR00)
label(MyAutoLR01)
label(MyAutoLR02)
00AA1808:
DD AwesomeMan
//-----------------------------------------------
MyAutoLRKey:
DD 1
MyAutoLRKeyLR:
DD 0
//-----------------------------------------------
AwesomeMan:
cmp [esp],007B8F5E
jne GetFocus
mov [esp],MyAutoLR
jmp GetFocus
MyAuto:
cmp eax,esi
jne MyAutoLR
MyAutoLR:
cmp [MyAutoLRKey],0
je MyAutoLR00
add [MyAutoLRKeyLR],1
cmp [MyAutoLRKeyLR],28A//左右移動距離
jle MyAutoLR01
cmp [MyAutoLRKeyLR],514//左右移動距離*2
jle MyAutoLR02
mov [MyAutoLRKeyLR],1
jmp MyAutoLR01
MyAutoLR01:
mov [ebp-8],ffffffff
xor eax,eax
xor esi,esi
cmp [ebp-04],esi
lea ecx,[edi+00000234]
jmp 007B9180
MyAutoLR02:
mov [ebp-8],1
xor eax,eax
xor esi,esi
cmp [ebp-04],esi
lea ecx,[edi+00000234]
jmp 007B9180
MyAutoLR00:
xor eax,eax
xor esi,esi
cmp [ebp-04],esi
lea ecx,[edi+00000234]
jmp 007B9180
[DISABLE]
00AA1808:
DD GetFocus
unregistersymbol(AwesomeMan)
dealloc(AwesomeMan)
unregistersymbol(MyAutoLR)
dealloc(MyAutoLR) |