07.12.2018, 09:49
Hi
Something like that will do. Use separate profile and attach event script to one output and write to your blind object what necessary
BR
Something like that will do. Use separate profile and attach event script to one output and write to your blind object what necessary
Code:
short = 0.6 --in seconds
outGrp = '32/1/55'
value = event.getvalue()
if (value == true) then
tsec, tusec = os.microtime()
storage.set('pressTimeSec', tsec)
storage.set('pressTimeMicro', tusec)
end
if (value == false and os.udifftime( storage.get('pressTimeSec'),storage.get('pressTimeMicro')) < short) then
grp.write(outGrp,true)
elseif (value ==false) then
grp.write(outGrp,false)
end
------------------------------
Ctrl+F5
Ctrl+F5