Disable external button
patriot_stv
Posts: 26
Hello!
Is there a command that can disable all external buttons? I mean, I need to EXT button is only activated when a specific event on and off until the event has not occurred
Is there a command that can disable all external buttons? I mean, I need to EXT button is only activated when a specific event on and off until the event has not occurred
0
Comments
For example
button_event [mio_1, key_volup] {push: {send_string dvReciv, 'volup}
button_event [mio_1, key_voldw] {push: {send_string dvReciv, 'voldw}
Etc.
If (event1= 1) {*disable key_volup and voldw*} --- what command for disable?
in the project I made the substitution device. it works, but I think this is the wrong decision.
Example
Define_variables
DEV void_dev
Define_event
Channel_event {mio_1,button} {
on: dvReciv = void_dev
Off: dvReciv = 5001:1:1}
button_event [mio_1, key_volup] {push: {send_string dvReciv, 'volup}
button_event [mio_1, key_voldw] {push: {send_string dvReciv, 'voldw}
Etc))))
Just set a var and use as a flag to determine if button pushes should be processed or not which is what AMXJeff was talking about.