I am trying to use the same Hot Key Trigger for multiple macro depending on the website I am on.
Let's say that I want to use ^c, for a different action, depending if I am on Google Calendar, or Gmail.
Currently, when I type ^c, Keyboard Maestro display a window that ask me which one of the macro I want to launch.
I can create a "() If Then Else" to act differently depending on a text condition "%ChromeURL%", however, it is not really convenient, as I will have to add all my actions for a specific Hot Key Trigger in a single macro.
Isn't there a way to limit a macro group to a specific website?
However, the issue is that I want one group to be available on a Saas that I use (facturation.pro), and unfortunately, there are no common words in the titles of the pages on this tool :
The window title is available via accessibility, which is slow, but not painfully slow, and can be detected via a change API in the system, hence the macro groups can be activated/deactivated as the window title changes.
But the URL is only available via AppleScript which is painfully slow (for this purpose) and has no change API, so it cannot be used an an activation/deactivation state change for macro groups.