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 10 made on Thursday July 29, 2010 at 13:13
miwi
Long Time Member
Joined:
Posts:
December 2004
34
Guy,

still no luck with the script:

Now I tried

var myTime = GUI.getDisplayTime();
EndPos = myTime.indexOf(":")
myHour=myTime.substring(0,EndPos);
myHour=myHour-0;
if (myHour<7 || myHour>=18){CF.widget("A","Page","Activity").executeActions();}
else {CF.widget("B","Page",Activity").executeActions();}


Error message in the console I receive is:

ProntoScript error: SyntaxError: unterminated string literal
Offending button script: Tag: 'test'
Offending line #6: "else {CF.widget("B","Page",Activity").executeActions();}"

What am I doing wrong?

Regards

miwi
Miwi


Hosting Services by ipHouse