No problem. I do have another question though, is there a way to trigger a script when an input goes high?
Triggers do exactly this but unfortunately IMHO are not very well documented nor particularly intuitive in the way they're implemented. I think this is why we see a lot of macropumps monitoring inputs and it's just not the best way to do it - again just MHO. The link Tweakie's pointed at covers it but makes a bit of a meal of it I think. Here's a quick guide.
Let's assume you want three active input pins to fire 3 different actions.
1) In ports n pins set up your pin assignments for OEM trigger #1, #2, #3.
2) in Config/system hotkeys set Trigger # OEM code to 301 for all three triggers.
3) Create a macro e.g. M665.m1s with the one line of SetTriggerMacro(666) Note: any free numbers you like will do for 665 and 666.
4) Add M665 preceeded by a space to the initialization string on the Config/General Config page
5) Now the buisness end - Create macro M666.m1s - something like:
If isActive(OEMTRIG1) Then
message "trig 1"
End If
If isActive(OEMTRIG2) Then
message "trig 2"
End If
If isActive(OEMTRIG3) Then
message "trig 3"
End If
Now when you activate the appropriate input pins you'll get the appropriate message. Change M666.m1s to suit.
Hope this helps
Cheers
Ian