晴曦 發表於 2024-12-10 09:51:41

TwMS v266.2 Auto Key

//TwMS v266.2 Auto Key

Alloc(Auto_Key_Hook,128,142986762)
Alloc(Delay,4)
Alloc(Timer,4)
RegisterSymbol(Delay)
RegisterSymbol(Timer)

Delay: //延遲毫秒
DD #100

Timer:
DD 00

Auto_Key_Hook:
push rcx
push rdx
push r8
push r9
push r10
push r11
sub rsp,20
call KERNEL32.GetTickCount
mov edx,eax
sub edx,
cmp edx,
mov r8,001D0030 //按鍵代碼
mov edx,11 //鍵碼
mov rcx,147AB6318
mov rcx,
jl 142986762+5
mov ,eax
call 144A9A060
add rsp,20
pop r11
pop r10
pop r9
pop r8
pop rdx
pop rcx
call 142FAA370
jmp 142986762+5

142986762:
jmp Auto_Key_Hook


142986762:
call 142FAA370

DeAlloc(Auto_Key_Hook)
DeAlloc(Delay)
DeAlloc(Timer)
UnRegisterSymbol(Delay)
UnRegisterSymbol(Timer)
頁: [1]
查看完整版本: TwMS v266.2 Auto Key