I can implement this manually, but a built in feature would be pretty handy.
Most of my macro groups are categorized by websites that I visit in a browser (Usually Chrome), and I can check the title of the window to enable macros from that group.
However, while websites often change their page titles, domains, and top level paths often don't change, so that's a good way to validate whether this macro should run. To do this, I can run a subroutine at the beginning of each macro in a macro group and cancel the macro if something doesn't match (domain, etc). However, doing so has several inconveniences.
-
Obviously, I need to paste this boilerplate code into each macro I create which is cumbersome and I may forget to do so.
-
If I use this as my main method of validation, the hotkey that I assign to my macro may still conflict with another macro in another group which isn't validating on the same domain.
My feature request would be a special macro or set of steps which can optionally run in a group to conditionally enable the group. Let me know if there's another way of doing this which would make more sense, but I have countless instances where this kind of feature would be useful.
Thanks!