evilC / AutoHotInterception

An AutoHotkey wrapper for the Interception driver
MIT License
708 stars 64 forks source link

Help!Context mode have a big BUG! #53

Closed PotatoJet closed 4 years ago

PotatoJet commented 4 years ago

Sometimes,it can't blocked. For example,I give "z" a function,then I test it in Word.However,sometimes it still send "z". My script and screenshot ↓↓↓

SingleInstance force

Persistent

include C:\AutoHotInterception\Lib\AutoHotInterception.ahk

AHI := new AutoHotInterception()

id1 := AHI.GetKeyboardId(0x258A, 0x001F, 1) cm1 := AHI.CreateContextManager(id1) return

if cm1.IsActive

z:: send O return

if

image Please help me fix the problem,I'm very grateful.

evilC commented 4 years ago

Context mode can sometimes potentially be flaky, try using Subscription mode and see if issues persist

PotatoJet commented 4 years ago

Context mode can sometimes potentially be flaky, try using Subscription mode and see if issues persist

I know that Subscription mode is good,but Context mode is much more easy and clean than Subscription mode.(I've tried Subscription mode,it's too difficult for me,lol) Could you please fix the Context mode problem?Thank you so much.

evilC commented 4 years ago

I had a look at it and indeed you are correct, Context Mode is simply unreliable.
I tried to fix it, but I cannot seem to make it at all reliable, I am thinking that I will probably have to remove this feature :(

PotatoJet commented 4 years ago

@evilC I am sorry to bother you again.Could you please fix Context mode's problem?Thanks. I know AHI is good,really good. I am using Hasu usb to usb converter now,but Taran's script still have big bug,which drive me crazy.

PotatoJet commented 4 years ago

@evilC Please help me.No one can help me,only you. I really apreciate it.

PotatoJet commented 4 years ago

@evilC Please help me.

evilC commented 4 years ago

I tried and failed - it's almost impossible to debug interop between C# and AHK There's nothing that can be done in context mode that can't also be done in subscription mode, so I suggest you use that

PotatoJet commented 4 years ago

All righ,it's ok.You are a good man.