I have a button which is used to control a device ("Switch") and i want to make alternate presses of the button turn the device on and off.
Also, i would like the label in the button to say "Switch On" if the device is currently off as pressing the button will turn the device on. conversely, the button label should be "Switch Off" if the device is on as a button push will turn it off.
Has anyone found a neat way to get an HS Touch button to do this? it is partly a labelling issue, and then secondarily an action issue. I know i can solve the flip/flop action by executing an event with a script; i wonder if there is a neater way with the clever function in the Designer. I also wonder how to get the button label to change.
simon
Also, i would like the label in the button to say "Switch On" if the device is currently off as pressing the button will turn the device on. conversely, the button label should be "Switch Off" if the device is on as a button push will turn it off.
Has anyone found a neat way to get an HS Touch button to do this? it is partly a labelling issue, and then secondarily an action issue. I know i can solve the flip/flop action by executing an event with a script; i wonder if there is a neater way with the clever function in the Designer. I also wonder how to get the button label to change.
simon
Comment