Is it posible to use macros to perform a click on merging elements?

Hi , is it posible to use macros to perform a click on merging elements. Like saying if the orange colour will be changing to red, can the macros perform a click during the interection betwen the two colors, interestion not visible to human eye

@malalamr i do not know what “merging elements” are. can you share an example?