Difference between revisions of "TriggerType"
Line 11: | Line 11: | ||
:<code>-- TriggerType=Menu</code> | :<code>-- TriggerType=Menu</code> | ||
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. | 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=== | ||
+ | :<code>-- TriggerType=Key</code> | ||
+ | With the option set to ''Key'', the script will triggered when the user pushes a specified key on the keyboard. | ||
+ | ===MIDI_Note=== | ||
+ | :<code>-- TriggerType=MIDI_Note</code> | ||
+ | With the option set to ''MIDI_Note'', the script will triggered when the a specific MIDI note is received.<br> | ||
+ | TRIGGER NOT IMPLEMENTED | ||
+ | ===EOS_Macro=== | ||
+ | :<code>-- TriggerType=EOS_Macro</code> | ||
+ | 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. | ||
+ | <br> | ||
+ | TRIGGER NOT IMPLEMENTED | ||
+ | ===MA2_Macro=== | ||
+ | :<code>-- TriggerType=MA2_Macro</code> | ||
+ | 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. | ||
+ | <br> | ||
+ | TRIGGER NOT IMPLEMENTED |
Revision as of 23:49, 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.
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