Quick silly question - onsite - Getting both Momentary and Channel feedback?
Hi there,
I am wondering what to do to get both momentary feedback on a button press and channel
feedback on a single button.
For instance, I have initially programmed up a remote so that it offers channel feedback on the
room icons if they are switched on. This is working fine but I would like icon to also display a
state change when pressed. This works fine when changing the properties to momentary but I
then lose the channel facility which is called by;
[dvTP2,901] = ((cMain1Input == 'CBL / SAT') & (cMain1PowerState = 'On'))
in the Define_Program
Is there a quick way of doing this without some long elaborate IF statement?
Thanks as always in advance,
Mike
I am wondering what to do to get both momentary feedback on a button press and channel
feedback on a single button.
For instance, I have initially programmed up a remote so that it offers channel feedback on the
room icons if they are switched on. This is working fine but I would like icon to also display a
state change when pressed. This works fine when changing the properties to momentary but I
then lose the channel facility which is called by;
[dvTP2,901] = ((cMain1Input == 'CBL / SAT') & (cMain1PowerState = 'On'))
in the Define_Program
Is there a quick way of doing this without some long elaborate IF statement?
Thanks as always in advance,
Mike
0
Comments
BUTTON_EVENT[dvTP,1] { PUSH: { TO[BUTTON.INPUT] //will provide the momentary-type feedback } }Your channel-based feedback could be derived many different waysIF(bButtonFLag) SEND_LEVEL dvTP, <whatever level value you assign the button>, 3; ELSE SEND_LEVEL dvTP, <whatever level value you assign the button>, ((cMain1Input == 'CBL / SAT') & (cMain1PowerState = 'On'))This can get cumbersome if you want to deal with a lot of buttons the same way, and I usually set them up in arrays in such a case, then use a FOR loop to run the feedback.
long.
Thanks again!!
button_event[dvTP,btns]{ push:{ [button.input.device,button.input.channel] = ![button.input.device,button.input.channel]; ///do other stuff here. } release:{//This may not be necessary, but it will complete the momentary feel. [button.input.device,button.input.channel] = ![button.input.device,button.input.channel]; } }If you expect the state of the button to update while the client is pushing the button, remove the release portion.
Jeff