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 2 made on Thursday March 14, 2019 at 19:16
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,997
You'd have to write a ProntoScript Module and include it at the System Level. Then each activity would get this module.

Note that this only works with PEP2 as this is where modules were introduced.

Now, with regard to how the Pronto operates.

1. When docked, even though the screen is off, ProntoScript is able to run continuously.

2. When undocked, Pronto CPU goes into a semi-sleep mode effectively waking up every minute or so to keep wifi active. When this happens, some ProntoScript can start to run and then be suspended again.

So, now, a very terse example.

Put this closurecode into a JS file and include it from the System Activity. It will be run for every activity in the configuration.


((function(){
System.setDebugMask(9);
// the current activity.
var myActivity = CF.activity();
myActivity.onSleep = function(){
System.print('onSleep');
};
myActivity.onWake = function(){
System.print('onWake');
};
myActivity.onEntry = function(){
System.print('onEntry');
};
myActivity.onExit = function(){
System.print('onExit');
myActivity.onSleep = null;
myActivity.onWake = null;
myActivity.onEntry = null;
myActivity.onExit = null;
};

}()));
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse