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 3 made on Thursday July 1, 2010 at 13:30
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
If you don't want to use Power Sense, use


System.setGlobal('PROJ_STATUS','ON');


In the page script of last Progress bar page.

Then, when you turn off the system, just make sure you clear that flag with:


System.setGlobal('PROJ_STATUS',null);


You can do this via button script or via page script of an intermediate page you jump to when system is shutting down.

For example, in your System Off button, add the ProntoScript:


System.setGlobal('PROJ_STATUS',null);
this.executeActions();


In the button script I posted before, change the line:

wTag = input.get() ? 'PROJ_ON' : 'PROJ_OFF';

to:

wTag = (System.getGlobal('PROJ_STATUS') === 'true') ? 'PROJ_ON' : 'PROJ_OFF';

Last edited by Lyndel McGee on July 1, 2010 17:07.
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse