Hi @noisneil
Recently I have been playing around with making new Macros and Actions using XML/AppleScript. It all started with looking up how to make a Macro to make new Text Snippets. Basically it is possible to create a new Action in a Macro with its Parameters set to Variables that you have set up.
So, for the section of your Macro that looks like this…

… and which requires you to click in the field you have called CLICK ME, I was wondering if a brand new Click at Found Image Action could just be added to the end of the Macro, ready for cutting and pasting where you want, with the area coordinate already filled in using the values your Macro has obtained.
So the Macro below demonstrates how four Variables can be used to create a new Click at Found Image Action pre-populated with those numbers. It is based on AppleScript by @unlocked2412
The Example uses a Prompt to get the 4 Values, but in your case you would just feed in the four Values you got using your Macro.
EXAMPLE Create Click at Found Image with Custom Area from Variables.kmmacros (6.7 KB)
Click to Show Gif

Using this method to create Actions and Macros from Variables is very powerful and can be adapted to lots of other uses. The original AppleScript came from here:
