TriggerKey

From Moving Light Assistant
Jump to: navigation, search

All comments in LUA start with a --
The TriggerKey option is used to specify which key will trigger the script.

-- 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.