I have an action which is used several times in one macro / several macros.
The goal is to edit the action so all other same actions are edited also instead of copying and pasting.
For example i have 10 same "move and double click actions with same conditions" i'd like to edit coordinates / found image condition / window title
Yes, but not in the way you’re currently thinking. The current best answer to this kind of problem is to make the key action a sub-routine that the other macros can run. Essentially, you’ll want to make a new macro that only contains the action you’re currently using across 10 macros, then replace that action in the other macros with an Execute a Macro action that executes the new macro. This way, you can just edit the sub-routine macro, and that change will be reflected when all the other macros run it.
By replacing that action with one for the third party plugin Activate an Application by Name to be found here:
The advantage of this plugin is that you can use a variable containing the name of the application you want to activate so all you do is set up a global variable with the application name and then use that variable in the plugin. So when the application changes from ABC to DEF all you need do is change the contents of the variable from ABC to DEF and you’re done!
Subroutine is a good method. Easier than using AS, XML & variable token.
But you need to put subroutine into these many macros one by one.
Nothing changed. You still need to do this one by one.
And it's hard to know what do you want in the future. Since KM is so useful.
The number of macros of a theme increases rapidly.
I ever did this kind of thing to more than 100 macros one by one.
Iooks like there is no easy way.
I'll keep studying in practical.