You can execute UI scripts for the macro page and even for each template. The Script section can be found in the Properties section in the lower left of the Macro Page Designer. Just as with the Lua Script MIDI Module, you can write your scripts with the internal editor or an external editor. See steinberg.help / MIDI Modules Reference / Lua Script for more details.
The Output Messages section for the UI scripts is hidden by default.
The Output Messages section displays the messages of all UI scripts. The UI script the message belongs to is indicated by a prefix.
A UI script cannot address the elements of a program directly. To address a program and its elements from the UI script, you must use getElement.