Post 1 made on Tuesday November 21, 2017 at 16:15 |
psathammer Long Time Member |
Joined: Posts: | January 2011 12 |
|
|
Hi.. I'm starting to reconfigure my remote and i want it to "sense" if my equipment is on or off. So it can use less time turning stuff on and off when changing activity So therefore i want to use script.. I added an extra page just to try, but when i press the button, nothing happens
This is what i made as an activity script..
CF.widget("PSW1","Activites","Please Wait..") .executeActions(); if (System.getGlobal ("Tv") == "Off") { System.setGlobal ("Tv", "On"); CF.widget("TvOn","OnOff","Home") .executeActions(); } delay(500); CF.widget("PSW2","Activites","Please Wait..") .executeActions(); if (System.getGlobal ("Umc") == "Off") { System.setGlobal ("Umc", "On"); CF.widget("UmcOn","OnOff","Home") .executeActions(); } delay(500); CF.widget("PSW3","Activites","Please Wait..") .executeActions(); if (System.getGlobal ("Android") == "Off") { System.setGlobal ("Android", "On"); CF.widget("ShieldOn","OnOff","Home") .executeActions(); } delay(500); CF.widget("PSW4","Activites","Please Wait..") .executeActions(); CF.widget("UIn6","Inputs","UMC") .executeActions(); delay(500); CF.widget("PSW5","Activites","Please Wait..") .executeActions(); delay(500); CF.widget("PSW6","Activites","Please Wait..") .executeActions(); delay(500); CF.widget("Hjem","OnOff","Home") .executeActions();
Anyone have an idea why it don't work
|
|
|