Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Original thread:
Post 5 made on Sunday April 20, 2008 at 13:23
nico11
Lurking Member
Joined:
Posts:
April 2008
4
I try but it doesn't work, where I make the mistake?


var EXT_NR = "2";// Specify extender 0-9, A-F
var INPUT_PORT = 0;// Specify power sense port 0,1,2,3

var e = CF.extender[parseInt(EXT_NR, 16)]; // Set up the extender
if(e == null) // Verify extender
{
Diagnostics.log("Extender " + EXT_NR + " is not defined");
}
else // Set up power sense input
{
var i1 = e.input[INPUT_PORT];

if(i1.get())// If Input 1 Is On
{
// execute actions of this button
scheduleAfter(100, CF.widget("butOn").executeActions());
}
else // If Input 1 Is Off
{
// execute actions of this button
scheduleAfter(100, CF.widget("butOff").executeActions());
}
}


Hosting Services by ipHouse