I hate to ask, but I'm having trouble scripting something, and have been having trouble with it. I'm just trying to make an alias to enable or disable a timer group called peer. The code is as follows.
sub peer (thename, theoutput, toggle)
select case uCase "toggle"
case "ON"
world.EnableTimerGroup "peer", 1
case "OFF"
world.EnableTimerGroup "peer", 0
case else
world.note "******** Timer incorrect *********"
exit sub
end select
end sub
The alias is called ^peer(.*)$ and it calls script peer. I've only gone by what I've read on the site, but I always get type mismatch, or syntaz errors.
sub peer (thename, theoutput, toggle)
select case uCase "toggle"
case "ON"
world.EnableTimerGroup "peer", 1
case "OFF"
world.EnableTimerGroup "peer", 0
case else
world.note "******** Timer incorrect *********"
exit sub
end select
end sub
The alias is called ^peer(.*)$ and it calls script peer. I've only gone by what I've read on the site, but I always get type mismatch, or syntaz errors.