How to detect text being typed?

I am looking to disable a macro when typing in a text box. This includes forms and browser address bars.

I tried to achieve this for Chrome HTML fields by using:

%ChromeJavaScript%document.activeElement.tagName%

but that’s not quite it. I was wondering if you had any ideas.

I don’t know of any Trigger (KM Wiki) that will auto-detect selection/entry into a text box or text area.

So, the best idea I have is to create another macro which toggles the enabled status of the main macro. Then you would have to manually trigger this macro before typing and after typing into a text box.

See Set Macro or Group Enable action (KM Wiki).

1 Like

That’s what I thought. Thanks!