Page 1 of 1

AutoHotkey help needed

Posted: 09 Jun 2023, 15:05
by kbdfr
Hi you lucky ones whose school stuff included programming and the core principles behind it,
can any of you help me? I am sure the solution is simple but I just can't figure it out.

I have a AHK script which does exactly what I want in all applications but adds an unwanted feature in one:
when typing in a Firefox window every now and then (not editing the text which follo’s) a c’aracter I type will inste’d be replaced with an apostrophe. This happe’s ran’omly and is of course very a’noying.

So I would like to add to my script a command simply instr’cting it to NOT work in Firefox.
Any ideas?

Than’s in advance :mrgreen:

Re: AutoHotkey help needed

Posted: 10 Jun 2023, 00:04
by Muirium
Presumably auto hot key has an equivalent of Karabiner’s active application if:

https://karabiner-elements.pqrs.org/doc ... plication/

Re: AutoHotkey help needed

Posted: 10 Jun 2023, 06:40
by pyrelink
Muirium wrote:
10 Jun 2023, 00:04
Presumably auto hot key has an equivalent of Karabiner’s active application if:

https://karabiner-elements.pqrs.org/doc ... plication/
It does: https://www.autohotkey.com/docs/v2/lib/WinActive.htm

you could check if firefox is your active window, and disable your script.

Re: AutoHotkey help needed

Posted: 11 Jun 2023, 08:57
by kbdfr
pyrelink wrote:
10 Jun 2023, 06:40
Muirium wrote:
10 Jun 2023, 00:04
Presumably auto hot key has an equivalent of Karabiner’s active application if:

https://karabiner-elements.pqrs.org/doc ... plication/
It does: https://www.autohotkey.com/docs/v2/lib/WinActive.htm

you could check if firefox is your active window, and disable your script.
Thanks guys, that's a lot of help already. I get it all in theory :D

But... how do I concretely tell AHK: if you detect that firefox is my active window, then suspend AHK?
And will then AHK be automatically "unsuspended" if my active window changes?

It may seem trivial to you, but I am lost in all these square and curly brackets and != and := and ^ and whatnot.