Yes - just use the UI Extensions Editor to create a button (in my example, I called it "Standby_Button").
Then use a macro such as this one:
import xapi from 'xapi';
xapi.event.on('UserInterface Extensions Panel Clicked', (event) => {
if (event.PanelId === 'Standby_Button') {
xapi.command('Standby Activate');
}
});
Wayne
--
Please remember to mark helpful responses and to set your question as answered if appropriate.