0
Answered

How to send commands made in GUI editor via script?

TuomoHautala 8 years ago in GUI Editor updated by Ekaterina (head of support) 8 years ago 2

How to send commands made in GUI editor via script?

So how i can activate EVENT_CHANNEL_SET from script?


Answered

Please use this command to activate channel:

IR.GetDevice("Driver").Set("Channel Name",100); // driver, channel, value

Event, when channel activated:

IR.AddListener(IR.EVENT_CHANNEL_SET, IR.GetDevice("Driver"), function(Name) {  

});