207
« on: April 13, 2019, 12:15:19 PM »
My initial approach would be to use a regular button and on the LeftUp script I would check the label:
If scr.getProperty("MyBtnName","Label")=="ON" then
scr.setProperty("MyBtnName","Label","OFF")
set a register or send a signal and or change the background color or call a function
else If scr.getProperty("MyBtnName","Label")=="OFF" then
scr.setProperty("MyBtnName","Label","AUTO")
set a register or send a signal and or change the background color or call a function
else If scr.getProperty("MyBtnName","Label")=="AUTO" then
scr.setProperty("MyBtnName","Label","ON")
set a register or send a signal and or change the background color or call a function
end
Haven't done any LUA programming lately so you would have to check the above syntax for errors.
HTH
RT