Couldn't find this in the tips, via google or as a feature request, so here goes:
I have a script I want to run whenever the user switches to a new application.
Feature could be just like the conditional activation group, just that it is an "unconditional activation group" with a way to do something only once per context switch.
it doesn't matter which or how that change was triggered ( ⌘Tab, ⇧⌘Tab, btt did dit,
open -a in iTerm etc etc)
The script when run is querying for which app is open, then asks a floating html5 window to open the corresponding .html for this particular app. This html has various functionality like text, icon, font and graphical resources for drag and drop, search fields, as well as a dynamically updated list of shortcuts for this app: keyboard bindings, mouse button bindings (btt), mouse gestures, named triggers, home assistant smart-home remote triggers and available actions.
I'm sorry if it's possible to accomplish this with btt already somehow, but I can't get the setup up and running other than polling every so many seconds, which isn't really the best way forward thanks for a great app.