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 5 made on Friday April 14, 2017 at 11:35
Element0815
Lurking Member
Joined:
Posts:
April 2017
4
On April 8, 2017 at 22:25, Lyndel McGee said...
There are several ways to achieve something similar but not exactly like what you want.

When you issue a Jump to another page or to a different activity either through prontoscript or the like, the backlight will come on.

In the home activity script, add the following code. Note that this same code will likely also keep the backlight on 100% of the time even when not docked when on any page of the Home Activity.


var activity = CF.activity();
activity.onSleep() = function()
{
// When screen starts to dim, execute the backlight button via ProntoScript.
try{
CF.widget('PS_BACKLIGHT', 'PS_SYSTEM','PS_SYSTEM').executeActions();
}
catch(e)
{
// ignore any error
}
}


Your Idea is perfect, thx.

But it doesn't work.

Where is my fault? I copy and paste the code into "Home -> Activity Properties -> Advanced -> Activity Script"

I removed the () behind onSleep, so the system print the word TEST, with () the system is printing nothing. If i build in a mistake like 'PS_BCKLIGHT' the System prints correct ERROR.

I can do want i want, the display turns OFF :-(


var activity = CF.activity();
activity.onSleep = function()
{
// When screen starts to dim, execute the backlight button via ProntoScript.
try{
System.print("TEST");
CF.widget('PS_BACKLIGHT','PS_SYSTEM', 'PS_SYSTEM').executeActions();
}
catch(e)
{
System.print("ERROR");
System.print(e);
// ignore any error
}
}



Greetings

Last edited by Element0815 on April 14, 2017 15:58.


Hosting Services by ipHouse