10.12.2018, 12:10
Time to learn scripting ;
this should do, just change short and the action for short and long press
this should do, just change short and the action for short and long press
Code:
short = 8 -- in 100ms
value = event.getvalue()
address=event.dst
log(address)
short = 8
if (value) then
for i = 1, short, 1 do
value = grp.getvalue(address)
if (value == false) then
grp.write('32/1/55', false) --short press action
break
end
-- wait for 0.1 seconds
os.sleep(0.1)
end
value = grp.getvalue(address)
if (value) then
grp.write('32/1/55', true) --long press action
end
end
------------------------------
Ctrl+F5
Ctrl+F5