0
Beantwoord

IR.GetDevices()

Wouter van der Post 6 jaar geleden bijgewerkt door Vladimir Ovchinnikov (expert) 6 jaar geleden 6

Is it possible in JS to get all devices in a project, for example with a function like "IR.GetDevices()"?

It could return an array with the device names so I can use "IR.GetDevice(name)" to get properties of each device.

Under review

Hello.

var devices = IR.GetDevices();
var name_1 = devices[0].Name;
var name_2 = devices[1].Name;
IR.Log("1 device: " + name_1);
IR.Log("2 device: " + name_2);