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 1 made on Friday December 1, 2017 at 12:25
Martin
Founding Member
Joined:
Posts:
May 2001
767
Folks,

I have the below script under the "Home" hard button for my Satellite activity (the hard button action list does a "Toggle Overlay"):

page("PS_OVERLAY").onOverlayShow = function()
{
function xX()
{
CF.activity().label = null;
scheduleAfter(2000, aPIC ) ;
}

function aPIC ()
{
CF.activity().label = "Lights Control";
scheduleAfter(2000, xX ); // Animate
}

function bPIC ()
{
scheduleAfter(500, aPIC ) ; // Start Blink
}

bPIC () ;
}

page("PS_OVERLAY").onOverlayHide = function()
{
CF.activity().label = null;
}
this.scheduleActions();

On the "OverlayShow" function, the script toggles the activity label between the current activity and the "Lights Control" label so the user knows that the overlay page is on top of the Satellite activity.

Now on the "OverlayHide" function, the script resets the activity label to the current activity.

The problem I have is that that the activity label does not stop blinking, the "OverlayShow" function script always runs. Is there a way to halt the script in the "OverlayHide" function?

I have searched the forum and looked into the developer guide but cannot find the answer.

Thanks,

Martin


Hosting Services by ipHouse