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 Friday March 29, 2019 at 20:05
Lowpro
Select Member
Joined:
Posts:
March 2004
2,081
I use the below ProntoScript to accomplish this. A normal button press will invoke one function. An extended button press will invoke another. Works beautifully.

Place the below ProntoScript on your Firm Key...
counter=0; onHold=function(){counter++; if(counter===1){doFirm3Ext();}};
onHoldInterval=1000; onRelease=function(){if(counter===0){doFirm3();}};


At the activity level you'd place your functions...
//CF.widget("Button PS Tag","Page PS Tag","Device PS Tag").executeActions();

function doFirm3Ext() {
CF.widget("Stop","Humax HDR-2000T PVR","Commands").executeActions();
}
function doFirm3() {
CF.widget("Play/Pause","Humax HDR-2000T PVR","Commands").executeActions();
}


I use this "Press & Hold" functionality throughout my configuration file. In fact, I have some activities where nearly every hard button does this. My configuration file is available for download here if you'd like to check out a real world example. Enjoy!

Last edited by Lowpro on March 31, 2019 13:07.
LP Related Links:
View my profile to access various
links to key posts and downloads.


Hosting Services by ipHouse