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:
Display Timeout Script
This thread has 7 replies. Displaying all posts.
Post 1 made on Sunday April 2, 2017 at 17:43
Element0815
Lurking Member
Joined:
Posts:
April 2017
4
Hi guys.

is it possible that the display of my pronto tsu9800 is in the dockingstation "allways on" and otherwise with a 20 sec timer?

or on page/activity X always on, otherwise the 20sek timer?


and im looking for discrete power on/off codes for my VU+.

Greetings
Sascha

Last edited by Element0815 on April 5, 2017 12:17.
OP | Post 2 made on Wednesday April 5, 2017 at 12:17
Element0815
Lurking Member
Joined:
Posts:
April 2017
4
No one?
Post 3 made on Friday April 7, 2017 at 13:19
alpha
Long Time Member
Joined:
Posts:
September 2003
258
I don't think it can be automatically "ON" only when docked. You might make a button (toggle) that keeps waking up the screen with a timer.

I am not on the computer with Pronto Edit right now but check to see if you can adjust the screen timer to always on .

The batteries could ware down much faster like this.

I believe it only runs on batteries when docked. There Is a wall mount that bypasses the batteries but the battery needs to be disconnected (for a permanent installation ).

Sorry I am not that familiar with the 9800.

If you could explain the need for the screen being always on in the dock there might be another solution for your problem.
Project Boredom 2 is here. [Link: mediafire.com]
------------------------
Check Version 1 & 2 out in the files section.
Post 4 made on Saturday April 8, 2017 at 22:25
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
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
}
}

Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | 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.
Post 6 made on Saturday April 15, 2017 at 17:55
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
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
OP | Post 7 made on Friday April 21, 2017 at 13:26
Element0815
Lurking Member
Joined:
Posts:
April 2017
4
I do not understand step 3. and 4.
I created the page with pronto script name "JUMPS". Here i created a button and named it "JUMP_TO_HOME". On this button i create a jump action to my home screen. Thats it? I also set the backlight button to my "JUMP_TO_HOME" button too and tested it. But nothing works.

The backlight turns off an one second later it turns on, after 20 seconds it turns off (timer) and then after one second it turns on.... thats bad.

The pronto did not press the button befor the display turns off, it pressed the button after it turns off.

my fault? but where?



sorry, bad english :(
Post 8 made on Thursday April 27, 2017 at 23:58
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
The script I wrote attempts to re-activate the screen as soon as it wants to turns off. I did not expect that the screen would go completely dark and then come back on. This being said, it may be that there is no real way to achieve what you want without manually entering settings and changing the value to 'Always On' for the backlight. I personally don't recommend this as the backlight may eventually dim/burn out if always on.

To clarify steps 1, 2, 3, this is what I meant.

Step 1. On the advance tab of the Properties Dialog/Area, put in a ProntoScript name of 'HOME'. Please note that this is not the name 'Home' that you cannot edit.

Step 2. On the advanced tab of the Properties Area, put in a ProntoScript Name of JUMPS. Please note that this is not the Page Label/Name (the one that shows up in the tree view on the left).

Step 3. On the advanced tab of the Properties Area, put in a ProntoScript Name of JUMP_TO_HOME. Please note that this is not the Label (text to be displayed on the button).
Lyndel McGee
Philips Pronto Addict/Beta Tester


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