//HKMS/TWMSv1.0 滑鼠移動(右趴左趴板)
//UpDAED bY: DARK9 2009/8/27
//熱鍵控制: 右趴下=開 左趴下=關
//EIP=CSX
//ADD:00900642
//--------------------------------------------
[Enable]
alloc(MouserX,512)
alloc(MouserY,512)
alloc(CSX,128)
alloc(OnOff,128)
label(normal)
label(normalx)
label(normaly)
label(back)
label(return)
label(On)
label(Off)
registersymbol(CSX)
registersymbol(OnOff)
OnOff:
dd 0
CSX:
push eax
mov eax,[AE62C4]
cmp [eax+0384],a
je On
cmp [eax+0384],b
je Off
pop eax
jmp MouserX
normal:
pop eax
mov [ebx], eax
mov edi,[ebp+10]
jmp back
back:
jmp 00900647 //or 0090070B
return:
jmp 009006AC
On:
pop eax
mov [OnOff],1
jmp MouserX
Off:
pop eax
mov [OnOff],0
jmp MouserX
MouserX:
cmp [OnOff],0
je normalx
push eax
mov eax,[AE62C4]
mov eax,[eax+0D6C]
cmp esi,eax
pop eax
jne normalx
mov eax, [00AE6460]
mov eax, [eax+0978]
mov eax, [eax+84]
mov [ebx], eax
mov edi,[ebp+10]
test edi, edi
jne MouserY
jmp 009006A9
normalx:
mov [ebx], eax
mov edi,[ebp+10]
jmp back
MouserY:
push eax
mov eax,[AE62C4]
mov eax,[eax+0D6C]
cmp esi,eax
pop eax
jne normaly
mov eax, [00AE6460]
mov eax, [eax+0978]
mov eax, [eax+88] //84+4
mov [edi], eax
mov ebx,[ebp+14]
jmp return
normaly:
mov [edi], eax
mov ebx,[ebp+14]
jmp return
[Disable]
dealloc(MouserX)
dealloc(MouserY)
dealloc(CSX)
dealloc(OnOff)
unregistersymbol(CSX)
unregistersymbol(OnOff)