04.10.2022, 06:30
Add to Common functions:
Add event script to 2/3/10:
If you have a fixed address shift of 190 (2/3/10 -> 2/3/200 and 2/3/201) then you can add a common tag to all source objects (2/3/10, 2/3/11, 2/3/12 etc) and map a single event script to this tag.
Code:
function longpress(event, shift)
local dst = event.dstraw + shift
if event.getvalue() then
dst = dst + 1
end
grp.write(dst, true)
os.sleep(1)
grp.write(dst, false)
end
Add event script to 2/3/10:
Code:
longpress(event, 190)
If you have a fixed address shift of 190 (2/3/10 -> 2/3/200 and 2/3/201) then you can add a common tag to all source objects (2/3/10, 2/3/11, 2/3/12 etc) and map a single event script to this tag.