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.