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

Login:
Pass:
 
 

Topic:
Page Jump and action list
This thread has 4 replies. Displaying all posts.
Post 1 made on Wednesday September 15, 2010 at 07:14
age6racer
Lurking Member
Joined:
Posts:
June 2008
3
Hi All,

I'm working with the Philips Dynalite Prontoscript module and I'm trying to make a few small changes to buttons.
I don't think that what I'm trying to do is very strange but I'm really struggling with it.

The buttons in the Dynalite module have a very short bit of script on them which in my case reads

Preset(99,12);

I simply want to add a page jump to this.

I have searched this forum but still cannot find the correct way of doing what I want to do.

I currently have a hidden page with a button that contains the page jump and I'm attempting to use the following;

Preset(99,12);
CF.widget("jumpskygym", "Hidden", "dynAct").scheduleActions();

With this setup the page jump works but the Preset doesn't.

Anyone have a clue what's going on here?
Any help would be much appreciated.
Post 2 made on Wednesday September 15, 2010 at 08:10
BluPhenix
Long Time Member
Joined:
Posts:
December 2008
371
Click on Actions (on the button of course), unclick the prontoscript icon to the far right.

Add a jump action to wherever you want.

Reclick the prontoscrpt icon and add:

this.scheduleActions(); after the line you posted.

Voila.

EDIT: if the preset doesn't work maybe the jump executes to fast. Add some simple delay:

Preset(xx,xx);
System.delay(300);
this.scheduleActions();
OP | Post 3 made on Wednesday September 15, 2010 at 09:53
age6racer
Lurking Member
Joined:
Posts:
June 2008
3
Thanks for the help but I'm afraid this is doing the same thing.
The page jumps but the preset doesn't send.

I've tried using delays up to 1000ms but it doesn't help.

Any more ideas?
Post 4 made on Wednesday September 15, 2010 at 11:09
BluPhenix
Long Time Member
Joined:
Posts:
December 2008
371
Not sure. Can you post what the function Preset() does, i mean the entire funcion, then we can solve out why is it not executed as it should be.
Post 5 made on Wednesday September 15, 2010 at 11:35
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
The line

Preset(99,12);

is likely putting something onto a queue to be executed later based on the way Philips generally writes modules.

Immediately after executing the line above, you are then scheduling your jump. What the scheduleActions implies is if there are any user-actions (actions executing from an actionlist from a user button press), execute the widget after those actions complete. However, Widget.scheduleActions does not wait on things to complete that may have been queued via scripting and may have been scheduled for later using Activity.scheduleAfter(). In this case, you have to fully understand what the module is doing to know how to act accordingly.

What you need to figure out is how to put something onto the queue such that when it is processed, you receive a notification of completion so you can do the jump following this. Maybe you could modify the Philips code such that the task queue has the capability to execute a widget. For example, you could add a function that queued a widget and might look like:

ScheduleJump(widget).

Or use a less robust approach and one that is less reliable due to queue timings, etc... Have a look at doing time-delayed schedule of 2 seconds (2000ms) using Activity.scheduleAfter:

CF.activity().scheduleAfter(2000, function(w){w.scheduleActions();},CF.widget("jumpskygym", "Hidden", "dynAct"));
Lyndel McGee
Philips Pronto Addict/Beta Tester


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse