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:
ProntoScript and Overlay Help (Resolved)
This thread has 3 replies. Displaying all posts.
Post 1 made on Sunday December 12, 2010 at 09:02
2Many
Long Time Member
Joined:
Posts:
September 2009
106
Under the activity level script I added the following:

var OB0 = CF.widget("PS_OVERLAY_BUTTON_0","PS_OVERLAY")
var OB1 = CF.widget("PS_OVERLAY_BUTTON_1","PS_OVERLAY")
var OB2 = CF.widget("PS_OVERLAY_BUTTON_2","PS_OVERLAY")
var OB3 = CF.widget("PS_OVERLAY_BUTTON_3","PS_OVERLAY")
var OB4 = CF.widget("PS_OVERLAY_BUTTON_4","PS_OVERLAY")
var OB5 = CF.widget("PS_OVERLAY_BUTTON_5","PS_OVERLAY")

CF.page("PS_ARTIST_INDEX").onOverlayShow = function() {
OB0.label = "Music Menu"
OB1.label = "Album Index"
OB2.label = "Artist List"
OB3.label = "Album List"
OB4.label = "Song List"
OB5.label = "Now Playing"
}

CF.page("PS_ALBUM_INDEX").onOverlayShow = function() {
OB0.label = "Music Menu"
OB1.label = "Artist Index"
OB2.label = "Artist List"
OB3.label = "Album List"
OB4.label = "Song List"
OB5.label = "Now Playing"
}

CF.page("PS_ARTIST_LIST").onOverlayShow = function() {
OB0.label = "Music Menu"
OB1.label = "Artist Index"
OB2.label = "Album Index"
OB3.label = "Album List"
OB4.label = "Song List"
OB5.label = "Now Playing"
}

CF.page("PS_ALBUM_LIST").onOverlayShow = function() {
OB0.label = "Music Menu"
OB1.label = "Artist Index"
OB2.label = "Album Index"
OB3.label = "Artist List"
OB4.label = "Song List"
OB5.label = "Now Playing"
}

CF.page("PS_SONG_LIST").onOverlayShow = function() {
OB0.label = "Music Menu"
OB1.label = "Artist Index"
OB2.label = "Album Index"
OB3.label = "Artist List"
OB4.label = "Album List"
OB5.label = "Now Playing"
}

CF.page("PS_NOW_PLAYING").onOverlayShow = function() {
OB0.label = "Music Menu"
OB1.label = "Artist Index"
OB2.label = "Album Index"
OB3.label = "Artist List"
OB4.label = "Album List"
OB5.label = "Song List"
}


None of the above seems to work, no errors shown in the console. So I tried something more basic:

var OB0 = CF.widget("PS_OVERLAY_BUTTON_0","PS_OVERLAY")
var OB1 = CF.widget("PS_OVERLAY_BUTTON_1","PS_OVERLAY")
var OB2 = CF.widget("PS_OVERLAY_BUTTON_2","PS_OVERLAY")
var OB3 = CF.widget("PS_OVERLAY_BUTTON_3","PS_OVERLAY")
var OB4 = CF.widget("PS_OVERLAY_BUTTON_4","PS_OVERLAY")
var OB5 = CF.widget("PS_OVERLAY_BUTTON_5","PS_OVERLAY")

OB0.label = "Music Menu"
OB1.label = "Album Index"
OB2.label = "Artist List"
OB3.label = "Album List"
OB4.label = "Song List"
OB5.label = "Now Playing"


Again, nothing happening. No errors.

What am I missing?

Last edited by 2Many on December 12, 2010 10:17.
"Home" is where my Pronto is.
Post 2 made on Sunday December 12, 2010 at 09:38
MCFH
Long Time Member
Joined:
Posts:
December 2009
35
My read of the manual was that onOverlayShow is fired on the overlay page NOT the normal page. As you can hook in the overlay page to a button without needing prontoscript at all.
Regards
Mark
OP | Post 3 made on Sunday December 12, 2010 at 10:16
2Many
Long Time Member
Joined:
Posts:
September 2009
106
Hi Mark

I'm using PS so that I can change overlay widget labels depending on what page I call the overlay from.

You were correct regarding the onOverlayShow property, which made me think some more. I've now tried out the following which seems to work:

CF.page("PS_OVERLAY").onOverlayShow = function() {
OB0.label = "Music Menu"
OB1.label = "Artist Index"
OB2.label = "Artist List"
OB3.label = "Album List"
OB4.label = "Song List"
OB5.label = "Now Playing"
}

To get the desired label changes I have to place the script at page level.

Thanks for getting me thinking!

James
"Home" is where my Pronto is.
Post 4 made on Saturday January 1, 2011 at 10:15
LorenzoFR
Long Time Member
Joined:
Posts:
October 2010
10
Thanks for the information, it works well.

Last edited by LorenzoFR on January 1, 2011 11:06.


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