This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Universal script
#2
Add to Common functions:
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.
Reply


Messages In This Thread
Universal script - by Borek - 03.10.2022, 15:21
RE: Universal script - by admin - 04.10.2022, 06:30
RE: Universal script - by Borek - 04.10.2022, 16:16
RE: Universal script - by admin - 05.10.2022, 06:35

Forum Jump: