Difference between revisions of "TriggerType"
Line 13: | Line 13: | ||
===Key=== | ===Key=== | ||
:<code>-- TriggerType=Key</code> | :<code>-- TriggerType=Key</code> | ||
− | With the option set to ''Key'', the script will triggered when the user pushes a specified key on the keyboard. | + | 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=== | ===MIDI_Note=== | ||
:<code>-- TriggerType=MIDI_Note</code> | :<code>-- TriggerType=MIDI_Note</code> |
Revision as of 23:57, 7 June 2014
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 is detected that a specific macro has been run on the EOS console.
TRIGGER NOT IMPLEMENTED
MA2_Macro
-- TriggerType=MA2_Macro
With the option set to MA2_Macro, the script will triggered when it is detected that a specific macro has been run on the grandMA 2 console.
TRIGGER NOT IMPLEMENTED