cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
295
Views
0
Helpful
1
Replies

Problem creating Standby button on Touch 10 home screen

ChrisB-IP
Level 1
Level 1

Hi, I trying to create a button on the Touch 10 attached to a Webex Room 55. I created a button in the UI Extensions configuration and gave it the ID "standby_button". I then created a macro with the following script:

const xapi = require('xapi');

xapi.event.on('UserInterface Extensions Page Action', (event) => {
if(event.Type == 'Opened' && event.PageId == 'standby_button'){
xapi.command('Standby Activate');
}
});

 

I made sure to the macro was toggled to active.

The button appears on the Touch 10, however nothing occurs when I click on it. Am I missing a step to get the macro running? 

1 Reply 1

Wayne DeNardi
VIP Alumni
VIP Alumni

If you have a Standby Button with the ID "Standby_Button", the macro you are looking for would be:

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.