冰楓論壇
標題:
TwMS v215.2 CRC 按鍵CALL的應用
[打印本頁]
作者:
乂Boyue乂
時間:
2019-4-11 21:26
標題:
TwMS v215.2 CRC 按鍵CALL的應用
//TwMS v215.2 CRC 按鍵CALL的應用
//使用方法: 寫個數據把對應開關打開即可按一下 開關寫法如下
[ENABLE]
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 [Key1_SW],0
mov esi,[0393E634]
mov ecx,[esi+A4]
push 00020000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_2:
pushad
mov [Key2_SW],0
mov esi,[0393E634]
mov ecx,[esi+A4]
push 00030000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_3:
pushad
mov [Key3_SW],0
mov esi,[0393E634]
mov ecx,[esi+A4]
push 00040000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_4:
pushad
mov [Key4_SW],0
mov esi,[0393E634]
mov ecx,[esi+A4]
push 00050000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_5:
pushad
mov [Key5_SW],0
mov esi,[0393E634]
mov ecx,[esi+A4]
push 00060000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_6:
pushad
mov [Key6_SW],0
mov esi,[0393E634]
mov ecx,[esi+A4]
push 00070000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_7:
pushad
mov [Key7_SW],0
mov esi,[0393E634]
mov ecx,[esi+A4]
push 00080000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_8:
pushad
mov [Key8_SW],0
mov esi,[0393E634]
mov ecx,[esi+A4]
push 00090000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_9:
pushad
mov [Key9_SW],0
mov esi,[0393E634]
mov ecx,[esi+A4]
push 000A0000 //Key Code
push 00
call 025C5D40
popad
jmp 0226A38C+8
PressKey_0:
pushad
mov [Key0_SW],0
mov esi,[0393E634]
mov ecx,[esi+A4]
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 [Key1_SW],1
je PressKey_1
cmp [Key2_SW],1
je PressKey_2
cmp [Key3_SW],1
je PressKey_3
cmp [Key4_SW],1
je PressKey_4
cmp [Key5_SW],1
je PressKey_5
cmp [Key6_SW],1
je PressKey_6
cmp [Key7_SW],1
je PressKey_7
cmp [Key8_SW],1
je PressKey_8
cmp [Key9_SW],1
je PressKey_9
cmp [Key0_SW],1
je PressKey_0
jmp 0226A38C+8
0226A38C:
jmp AutoKey
[DISABLE]
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)
複製代碼
[ENABLE]
Key1_SW:
DD 01
[DISABLE]
複製代碼
作者:
rhg59321
時間:
2019-4-11 22:30
大大回來玩了嗎?
歡迎光臨 冰楓論壇 (https://bingfong.com/)
Powered by 冰楓