17.05.2017, 22:57
(This post was last modified: 17.05.2017, 22:58 by Erwin van der Zwart.)
Hi,
You don't need a additional class for this
Just use a virtual object for your + and - buttons , set + button to 1 and min button to 0 as fixed value and add this event based script to the virtual object:
BR,
Erwin
You don't need a additional class for this
Just use a virtual object for your + and - buttons , set + button to 1 and min button to 0 as fixed value and add this event based script to the virtual object:
Code:
value = event.getvalue()
oldvalue = grp.getvalue('1/1/1')
if value == 1 then
if oldvalue =< 31.5 then
grp.write('1/1/1', (oldvalue + 0.5))
end
else
if oldvalue => 7.5 then
grp.write('1/1/1', (oldvalue - 0.5))
end
end
Erwin