LUA Script Engine

A lua engine allows you to create and run programs to configure the M.1k2. You can assign your scripts to buttons and run them with a simple click.

ConfigurationDevicePluginsScripting Engine


Script permissions

Select the permission class the script engine should run with. This way the access to the device can be restricted.

Button Configuration

Button configuration

You can configure 64 buttons in a 16 × 4 matrix. The title, the colors and description are automatically taken over from the header section in the script.

Uploading a script

Press "Upload.." or "Change.." in the cell you want to upload the script to. Select your script, it should pop up immediately.

Deleting a script

To remove a script from a button, press "Delete" and confirm the dialogue.

Viewing a script

Click on the button area. The script source opens in a separate window.

Running Scripts

My AccountSystem Scripts

Running scripts

To run a script, press its button. After execution, the button's border will either glow green (=success) or red (=failure). If the script has produced output, the button "View log.." appears. If the execution of a script failed, you might find the error message(s) in the log file.

Tally Feature

If a script changes crosspoints in the online matrix, those changes are recorded and the button's colors for the corresponding script are reversed (foreground color becomes background color and vice versa), thus 'activating' the button. If one of the crosspoints that have been modified by the script are changed elsewhere, the button is deactivated.

Tally Feature

In the example above, all three scripts have the same foreground and background color defined in the script header. Buttons 2 and 3 are 'active'.

Text and images © 2017 DirectOut Technologies, 09.06.2017