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 using Pronto Script
This thread has 7 replies. Displaying all posts.
Post 1 made on Wednesday August 1, 2007 at 14:51
RHGoalie
Long Time Member
Joined:
Posts:
June 2007
52
On the TSU9600 does anyone know how to program a page jump from a Prontoscript program?

For example, I am opening a TCPSocket on my custom page but when the user presses the Home button, I want to close the socket before the Home page is displayed. I can re-program the Home button to close the socket using Prontoscript but can't figure out how to get it to "jump" to the Home page afterwards.
Post 2 made on Wednesday August 1, 2007 at 23:18
Lowpro
Select Member
Joined:
Posts:
March 2004
2,081
Keep in mind that I'm not a programmer. That being said here is my best guess. Place a button on a hidden page. Said buttons action list should contain the needed "jump to" action. Give both the page and button ProntoScript names, then utilize the executeActions() method in your ProntoScript to execute the action list for said button. For more details reference page 25 of the ProntoScript Developer's Guide.
LP Related Links:
View my profile to access various
links to key posts and downloads.
Post 3 made on Wednesday August 1, 2007 at 23:51
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
Lowpro is 100% correct. For not being a programmer, A+++.

:)
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 4 made on Thursday August 2, 2007 at 01:20
Barry Gordon
Founding Member
Joined:
Posts:
August 2001
2,157
Also if you have debugging operating you will get an error message when the jump takes place, but that is intentional according to my Pronto team contact in that it is a reminder that the current script is about to abort. I guess if you can't fix it, feature it.
OP | Post 5 made on Thursday August 2, 2007 at 10:45
RHGoalie
Long Time Member
Joined:
Posts:
June 2007
52
Lowpro, thanks for the suggestion.

I actually implemented the feature by:
1) Creating a hidden page
2) On the hidden page, calling a Prontoscript function placed in Device Properties
3) On Device Properties->Advanced, create the function to close the TCP socket
4) On Device Properties->Hard Buttons, deselecting Use System Page Actions then
Add Actions of:
a) Jump to the hidden page
b) Link to the Home page

What happens when I press the Home button when I am on my custom page is that I "see" the hidden page for a split second then the Home page is displayed. This is satisfactory even though it is not a "pure" Prontoscript solution.
Post 6 made on Thursday August 2, 2007 at 11:18
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
Not sure what the hidden page is for but you can get the Home Hard Key with GUI.widget("PS_HOME") and then simply invoke executeActions() on this widget. When you do this, you will get the messages that Barry mentions above.

Lyndel
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 7 made on Thursday August 2, 2007 at 12:18
RHGoalie
Long Time Member
Joined:
Posts:
June 2007
52
When the Home button is pressed, it will Jump to the hidden page. The hidden page has in its page script just a call to the function that closes the socket. Then it returns to the Home button script that links it back to the Home page.

I don't get the debug messages doing it this way.
Post 8 made on Monday August 6, 2007 at 22:35
Barry Gordon
Founding Member
Joined:
Posts:
August 2001
2,157
The debug message is always generated on a jump using the executeActions method. You just do not see it if the debug page is not visible or does not exist. Since a hidden page has no visible widgets, the debug page's debug panel (_PS_DEBUG_) can never be seen, ergo no message to be seen.

Something like trees in a forest make no sounds when falling if there is no one around to hear.


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