Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
press and hold +1 sec
This thread has 6 replies. Displaying all posts.
Post 1 made on Thursday January 3, 2008 at 18:39
jakob.sand
Long Time Member
Joined:
Posts:
December 2006
36
Hi experts.
I am not a prontoscript programmer .. yet.
I have with your help been able to build my system up using pages and the edit interface. (I even got my BOSE LS 18 to react too).

Now I would like to add the funtionality of a multi room mute all by pressing and holding the firm key of "mute" down. Can this be done via pronoscript?
Post 2 made on Thursday January 3, 2008 at 20:38
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
13,006
Something similar can be done. Not sure if it will give you the press and hold you seek.

See the ProntoScript developers guide specifically widget.onHold() and onHoldInterval.

Inside your "onHold" function you will need to execute the actions of another widget widget.executeActions(). However I don't think that will help you necessarily.

You should experiment with the Duration setting of the IR code if you have not already done so.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 3 made on Thursday January 3, 2008 at 21:27
Peter Dewildt
Loyal Member
Joined:
Posts:
July 2001
6,307
You don't need ProntoScript. Just adjust the duration on the IR Code.
Peter
Pronto 1000 (retired), Pronto TSU7000, RFX6000 (retired)
Pronto 2xTSU9600, RFX9400
OP | Post 4 made on Friday January 4, 2008 at 03:54
jakob.sand
Long Time Member
Joined:
Posts:
December 2006
36
But on the same buttom I have allreade a "Mute in this room" IR attached. I would to add the other functionality to the same buttom if I hold it for more than 1 sec.
Post 5 made on Friday January 4, 2008 at 08:46
Lowpro
Select Member
Joined:
Posts:
March 2004
2,081
What Peter is suggesting is not to add a delay action to the buttons action list, but to add a minimum IR duration of 1 second to the IR code you are linking which will result in your mute IR code being sent for 1 full second from the remote on a short button press. Adding the minimum IR duration to the IR code is done in the properties of the IR code via the "Add IR Code" window. Simply go to the button containing the actual IR code for your mute function and click on the IR code as seen in the action list. This will open the "Add IR Code" window where you can then set the minumum IR duration for the IR code. Once hitting OK note that the IR code as seen in the action list will call out the minimum IR duration you've set. That being said, you may not want your mute function to be sent for 1 second from the remote on a short button press in all instances throughout your configuration file. To prevent this create a copy of the button containing the actual IR code for your mute function that way you can have one set with the minimum IR duration of 1 second and one set with no minimum IR duration, then linking to each accordingly throughout your configuration file.
LP Related Links:
View my profile to access various
links to key posts and downloads.
Post 6 made on Friday January 4, 2008 at 08:51
thoupis
Long Time Member
Joined:
Posts:
August 2007
124
jakob.sand is requesting for a "double function" button. In Crestron systems there is a logic symbol "debounce" which allows a programmer to have a button doing one action if it is pressed but if it is kept pressed for an amount of time you specify in the symbol another function will be performed. Something like the Russound Uno keypads where you keep the power button pressed on the keypad and all zones go in Party Mode! That is what jakob.sand is requesting. As I have not performed such a test on the Prontoscript yet, I cannot suggest whether it can or cannot be done
Post 7 made on Friday January 4, 2008 at 09:00
Lowpro
Select Member
Joined:
Posts:
March 2004
2,081
On January 4, 2008 at 08:51, thoupis said...
jakob.sand is requesting for a "double function" button.
In Crestron systems there is a logic symbol "debounce"
which allows a programmer to have a button doing one action
if it is pressed but if it is kept pressed for an amount
of time you specify in the symbol another function will
be performed. Something like the Russound Uno keypads
where you keep the power button pressed on the keypad
and all zones go in Party Mode! That is what jakob.sand
is requesting. As I have not performed such a test on
the Prontoscript yet, I cannot suggest whether it can
or cannot be done

This is possible via ProntoScript. There is an example in the ProntoScript Developers Guide in fact showing how to execute a given action only after holding down said button for a predetermined number of seconds or more. Include this script in an if/else statement and you've got your double function button or "Press and hold" function. If said button is held down for x second(s) or more one action is executed, else a different action is executed. URC's MX Editor offers the "Press and hold" function by the way which I've always found very useful. Best of all it's WISYWIG! It's very cool to finally have this ability on the Pronto via ProntoScript.

Last edited by Lowpro on January 4, 2008 09:10.
LP Related Links:
View my profile to access various
links to key posts and downloads.


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse