Difference between revisions of "TriggerKey"

From Moving Light Assistant
Jump to: navigation, search
 
Line 1: Line 1:
 
All comments in LUA start with a <code>--</code><br>
 
All comments in LUA start with a <code>--</code><br>
The ''TriggerKey'' option is used to specify which key will trigger the script.<br>
+
The ''TriggerKey'' option is used to specify which key will trigger the script. The option will only have an effect if the [[TriggerType]] is set to ''Key''.<br>
 
:<code>-- TriggerKey=f</code>
 
:<code>-- TriggerKey=f</code>
 
In the above example, the pushing the ''f'' key will trigger the script to run. The case of the letter is important. If you want the script to trigger with the key combination ''Shift'' + ''f'', then you would specify the trigger key as ''F''.
 
In the above example, the pushing the ''f'' key will trigger the script to run. The case of the letter is important. If you want the script to trigger with the key combination ''Shift'' + ''f'', then you would specify the trigger key as ''F''.
 
:<code>-- TriggerKey=F</code>
 
:<code>-- TriggerKey=F</code>
 
Certain keys can not be used to trigger the script such as the ''Escape, Return, Function'' or ''Backspace'' keys.
 
Certain keys can not be used to trigger the script such as the ''Escape, Return, Function'' or ''Backspace'' keys.

Latest revision as of 01:06, 8 June 2014

All comments in LUA start with a --
The TriggerKey option is used to specify which key will trigger the script. The option will only have an effect if the TriggerType is set to Key.

-- TriggerKey=f

In the above example, the pushing the f key will trigger the script to run. The case of the letter is important. If you want the script to trigger with the key combination Shift + f, then you would specify the trigger key as F.

-- TriggerKey=F

Certain keys can not be used to trigger the script such as the Escape, Return, Function or Backspace keys.