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 6 made on Saturday April 15, 2017 at 17:55
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,996
You are correct. I had a typo on the original example. The () was not needed after onSleep. Apologies for that.

Executing the backlight via script used to work in PEP1. Maybe it does not in later firmware. If you'd like to understand the ProntoScript names (aka Tags) from my previous example, see Appendix D of the 1.4.3 DEV Guide (Page 185).

If remote is currenly on the home page, what I suggest below may not work but is worth a try.


1. In your 'Home' activity, Set the 'Home' ProntoScript Name to 'HOME'.

2. Create a page in this activity and set the ProntoScript Name to 'JUMPS'.

3. On this page, add a button and set the ProntoScript Name to 'JUMP_TO_HOME' (will have to press the 'PS' button on Actions Property Tab to do this.

4. Unpress the 'PS' button and add action Page Jump->Home->Home.

Now, use this in your Home activity script.

var activity = CF.activity();
activity.onSleep = function()
{
// When screen starts to dim, execute the backlight button via ProntoScript.
try{
CF.widget('JUMP_TO_HOME','JUMPS', 'HOME').executeActions();
}
catch(e)
{
System.print(e);
// ignore any error
}
}
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse