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 Sunday May 12, 2024 at 19:15
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
13,060
That simple shortcut/event listener/callback does not exist. The DEV Guide is helpful for the following (note that ability to create/assign an onPress function was added when Pronto began supporting dynamic widgets).

You can override onPress function for all your buttons that don't have ProntoScript assigned to them already. Note that by assigning onPress for a button, you will effectively remove any script you currently have defined/configured in the editor for a button widget.

This can be done in a Page Script vs having to edit each and every button.

For example, in a page script.

function clearTimerAndExecute() {
// whatever logic to clear your timer but cannot jump to a page.
this.scheduleActions();
}


GUI.widget("PS_FIRM1").onPress = clearTimerAndExecute;
GUI.widget("PS_FIRM2").onPress = clearTimerAndExecute;
GUI.widget("PS_FIRM3").onPress = clearTimerAndExecute;
// you get the idea.



Lyndel
Lyndel McGee
Philips Pronto Addict/Beta Tester


Hosting Services by ipHouse