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:
How to Page Flip on Pronto Script
This thread has 5 replies. Displaying all posts.
Post 1 made on Monday January 12, 2009 at 13:38
MrPUK
Long Time Member
Joined:
Posts:
April 2008
18
I'm a little unsure how to do a Page flip in Pronto Script anyone have any ideas?

Cheers

Iain
Mr P
OP | Post 2 made on Monday January 12, 2009 at 14:39
MrPUK
Long Time Member
Joined:
Posts:
April 2008
18
My bad, should have searched for Jump and not page flip, just looking at it now. But any points would be great.
Mr P
Post 3 made on Monday January 12, 2009 at 18:37
Jon Welfringer
Long Time Member
Joined:
Posts:
December 2002
175
Put your jumps in a hidden button's actionlist and then call that list via script with executeActions().
Post 4 made on Tuesday January 13, 2009 at 17:56
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
My suggestion is to also wrap your call to executeActions() with a try/catch block to prevent ActionListErrors from frequenting your diagnostic log.

Also note that if you are trying to do widget.executeActions to achieve a jump from a page script, you must wrap this call to schedule later using CF.activity().scheduleAfter() as documented in the Pronto FAQ on the Philips site.

Ian,

And since you mean Page Jump instead of Page Flip, why not edit your original post and change the subject line so a search for +Page +Jump +ProntoScript will pick up this post?
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 5 made on Tuesday January 13, 2009 at 18:09
Jon Welfringer
Long Time Member
Joined:
Posts:
December 2002
175
On January 13, 2009 at 17:56, Lyndel McGee said...
Also note that if you are trying to do widget.executeActions
to achieve a jump from a page script, you must wrap this
call to schedule later using CF.activity().scheduleAfter()
as documented in the Pronto FAQ on the Philips site.

Wouldn't this only need to be done if you had additional commands to perform within the script? I've found that if I am aborting the script to do my jump that the executeActions jumps just fine and all processing continues as expected.
Post 6 made on Tuesday January 13, 2009 at 18:25
GuerillaBuild
Long Time Member
Joined:
Posts:
December 2008
79
A lot of times people put an executeActions() in the middle of their scripts and wonder why half of their script never processes or something just plain doesn't work. The big issue is that the script that contains the executeActions may be part of a chain of script functions. Thus what Lyndel is saying is defer your action list with scheduleAfter() such that all of your scripts process properly. In short executing actions while a script is running causes the script to bomb out and if memory serves may also bomb your actions. You can sometimes avoid a scheduleAfter() if your executeActions() is the last line of script to be executed during the current process.

You can see a similar issue with GUI.updateScreen(). If you change visibility on a widget or use GetImage() on a widget. You won't see the results until the script fully finishes. Sometimes this never occurs and sometimes it occurs well after the button push or event trigger. If you place a GUI.updateScreen() just after the 'change event' it executes immediately on receipt of the GUI.updateScreen() method.
You can hide almost anything until you have to put the drywall up!


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