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 16 made on Wednesday January 21, 2009 at 21:29
Guy Palmer
Active Member
Joined:
Posts:
June 2008
648
Herb,

Here, in all its glory, is the script that I wrote:

var myTime = GUI.getDisplayTime();
if(myTime.substring(2, 3) == ":") {myHour = myTime.substring(0,2);}
else if(myTime.substring(1, 2) == ":") {myHour = myTime.substring(0,1);}
myHour=1*myHour;
if (myHour<7 || myHour>=18) {CF.widget "Night","Components","Macros").executeActions();}
else {CF.widget("Day","Components","Macros").executeActions();}


Hosting Services by ipHouse