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 4 made on Saturday January 5, 2008 at 12:54
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
13,007
The way you do this is to code a 'Jump' in the ActionList of a widget and then issue 'executeActions' against the widget containing the jump. Be sure that you do this using ScheduleAfter as all scripts will end as soon as the Jump out of the activity is processed.

Here's an example to play with.

var w = CF.widget('GoHome','MyPage','MyActivity);
if (w)
CF.activity().scheduleAfter(10,function(x){try{x.executeActions();}catch(e){Diagnostics.log(e);}},w);

It is important to use try/catch here as you don't want to let any errors propagate out of your function as this could, in some cases, cause instability in the Pronto. It's not so much of a problem now as it was in earlier ProntoScript releases but it is always good practice to prevent errors from propagating out into the system from your own code.
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse