Hello again everyone. Made some progress in solving my problem.
To change the text of a Macro (let's call it ActionMacro), I use another Macro (let's call it SwitchMacro).
My idea was this:
Create a trigger that will fire every time I click on SwitchMacro. I tried to do this using ScanEvents and it works, although only 1 time. That is, when I click on the SwitchMacro my UI changes according to the changes in the ActionMacro. Everything is fine, but when I click on SwitchMacro again, the UI does not update. At the same time, the text in ActionMacro has definitely changed. Those. I conclude that the second time, the trigger from ScanEvents does not work. It’s worth adding that the UI is updated if I manually log into WA.
What should I do? How can I make the trigger fire every time I click on a macro?
P.S
I understand that my method is not ideal, and most likely there is another way to dynamically track changes in the macro text, but I could not find it