TwMS v215.2 CRC 按鍵CALL的應用
//TwMS v215.2 CRC 按鍵CALL的應用//使用方法: 寫個數據把對應開關打開即可按一下 開關寫法如下
Alloc(AutoKey,1024)
Registersymbol(Key1_SW)
Alloc(Key1_SW,4)
Registersymbol(Key2_SW)
Alloc(Key2_SW,4)
Registersymbol(Key3_SW)
Alloc(Key3_SW,4)
Registersymbol(Key4_SW)
Alloc(Key4_SW,4)
Registersymbol(Key5_SW)
Alloc(Key5_SW,4)
Registersymbol(Key6_SW)
Alloc(Key6_SW,4)
Registersymbol(Key7_SW)
Alloc(Key7_SW,4)
Registersymbol(Key8_SW)
Alloc(Key8_SW,4)
Registersymbol(Key9_SW)
Alloc(Key9_SW,4)
Registersymbol(Key0_SW)
Alloc(Key0_SW,4)
Label(PressKey_1)
Label(PressKey_2)
Label(PressKey_3)
Label(PressKey_4)
Label(PressKey_5)
Label(PressKey_6)
Label(PressKey_7)
Label(PressKey_8)
Label(PressKey_9)
Label(PressKey_0)
//========================================
Key1_SW:
DD 00
Key2_SW:
DD 00
Key3_SW:
DD 00
Key4_SW:
DD 00
Key5_SW:
DD 00
Key6_SW:
DD 00
Key7_SW:
DD 00
Key8_SW:
DD 00
Key9_SW:
DD 00
Key0_SW:
DD 00
//========================================
PressKey_1:
pushad
mov ,0
mov esi,
mov ecx,
push 00020000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_2:
pushad
mov ,0
mov esi,
mov ecx,
push 00030000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_3:
pushad
mov ,0
mov esi,
mov ecx,
push 00040000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_4:
pushad
mov ,0
mov esi,
mov ecx,
push 00050000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_5:
pushad
mov ,0
mov esi,
mov ecx,
push 00060000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_6:
pushad
mov ,0
mov esi,
mov ecx,
push 00070000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_7:
pushad
mov ,0
mov esi,
mov ecx,
push 00080000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_8:
pushad
mov ,0
mov esi,
mov ecx,
push 00090000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_9:
pushad
mov ,0
mov esi,
mov ecx,
push 000A0000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_0:
pushad
mov ,0
mov esi,
mov ecx,
push 000B0000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
//========================================
AutoKey:
DB 55 8b 6b 04 89 6c 24 04 //Original Code
cmp ,1
je PressKey_1
cmp ,1
je PressKey_2
cmp ,1
je PressKey_3
cmp ,1
je PressKey_4
cmp ,1
je PressKey_5
cmp ,1
je PressKey_6
cmp ,1
je PressKey_7
cmp ,1
je PressKey_8
cmp ,1
je PressKey_9
cmp ,1
je PressKey_0
jmp 0226A38C+8
0226A38C:
jmp AutoKey
0226A38C:
DB 55 8b 6b 04 89 6c 24 04
DeAlloc(AutoKey)
UnRegistersymbol(Key1_SW)
DeAlloc(Key1_SW)
UnRegistersymbol(Key2_SW)
DeAlloc(Key2_SW)
UnRegistersymbol(Key3_SW)
DeAlloc(Key3_SW)
UnRegistersymbol(Key4_SW)
DeAlloc(Key4_SW)
UnRegistersymbol(Key5_SW)
DeAlloc(Key5_SW)
UnRegistersymbol(Key6_SW)
DeAlloc(Key6_SW)
UnRegistersymbol(Key7_SW)
DeAlloc(Key7_SW)
UnRegistersymbol(Key8_SW)
DeAlloc(Key8_SW)
UnRegistersymbol(Key9_SW)
DeAlloc(Key9_SW)
UnRegistersymbol(Key0_SW)
DeAlloc(Key0_SW)
Key1_SW:
DD 01
大大回來玩了嗎?
頁:
[1]