TriggerType

From Moving Light Assistant
Revision as of 23:17, 12 March 2015 by Andyv wiki admin (Talk | contribs) (updated EOS_Macro)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

All comments in LUA start with a --
This comment option will define how the script will be triggered. For example, if you wish the script to be triggered from the 'Scripts' menu, then include the line below in your script.

-- TriggerType=Menu

If no trigger type is specified, the script will not be able to be triggered be default. This can manually be changed in the 'Manage Scripts…' dialog.

TriggerType Options

None

-- TriggerType=None

With the option set to None, the script can not be triggered to be run.

Menu

-- TriggerType=Menu

With the option set to Menu, the script will appear in the 'Scripts' menu. Selecting the script from the menu will run the chosen script. The order of the scripts in the menu is the order they are found in the 'Scripts' folder.

Key

-- TriggerType=Key

With the option set to Key, the script will triggered when the user pushes a specified key on the keyboard. The key to use as the trigger is specified with the TriggerKey comment option.

MIDI_Note

-- TriggerType=MIDI_Note

With the option set to MIDI_Note, the script will triggered when the a specific MIDI note is received.
TRIGGER NOT IMPLEMENTED

EOS_Macro

-- TriggerType=EOS_Macro

With the option set to EOS_Macro, the script will triggered when it has detected that a specific macro has been run on the EOS console.

MA2_Macro

-- TriggerType=MA2_Macro

With the option set to MA2_Macro, the script will triggered when it has detected that a specific macro has been run on the grandMA 2 console.
TRIGGER NOT IMPLEMENTED