0
Отвечен

Getting name of the button with function.

TuomoHautala 9 лет назад в iRidium Script обновлен Dmitry - support (expert) 9 лет назад 4
Is there any way to get information about pressed button name with function and script call and to put it to IR.Log?

На рассмотрении
Hello!

the name of any pressed button on the page you can get using the following functions:

for(var i = 0; i < IR.GetItem("Page 1").ItemsCount; i++){
IR.AddListener(IR.EVENT_ITEM_PRESS,IR.GetItem("Page 1").GetItem(i), press, IR.GetPage("Page 1").GetItem(i) );
}

function press(){

IR.Log(this.Name);
}

Is it possible to create funtion and use it with script call and log the name of the button with it?

Hello!


Unfortunately, to get the name of the pressed button is possible only with the help of a script that is written above.

Сервис поддержки клиентов работает на платформе UserEcho