Open PotatoJet opened 4 years ago
@evilC Merry Christmas!
#SingleInstance force
#include Lib\AutoHotInterception.ahk
AHI := new AutoHotInterception()
id1 := AHI.GetKeyboardId(0x1C4F, 0x0002, 1)
id2 := AHI.GetKeyboardId(0x258A, 0x001F, 1)
AHI.SubscribeKey(id1, GetKeySC("z"), true, Func("Kb1Event"))
AHI.SubscribeKey(id2, GetKeySC("z"), true, Func("Kb2Event"))
return
Kb1Event(state){
if (state){
Send A
}
}
Kb2Event(state){
if (state){
Send O
}
}
#SingleInstance force #include Lib\AutoHotInterception.ahk AHI := new AutoHotInterception() id1 := AHI.GetKeyboardId(0x1C4F, 0x0002, 1) id2 := AHI.GetKeyboardId(0x258A, 0x001F, 1) AHI.SubscribeKey(id1, GetKeySC("z"), true, Func("Kb1Event")) AHI.SubscribeKey(id2, GetKeySC("z"), true, Func("Kb2Event")) return Kb1Event(state){ if (state){ Send A } } Kb2Event(state){ if (state){ Send O } }
Thanks again. You are a real gentleman.
Thank you for your help,evilC.
How to replace the Highlights (state){ if (state){
to ::
,and } }
to return
?
Because I prefer AHK's normal script.
Thanks.
I'm sorry to bother you again. How to change the below context script to subscription script? (Only subscription,not combined.Thanks)