Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Seiteneigenschaften



Deutsch

Klicken Sie in der LMC auf das Menü Add-ins. In diesem Menü können Sie bereits bestehende Add-ins einsehen und neue Add-ins erstellen.

Klicken Sie anschließend auf Neues Add-in erstellen.

Image Added


Skript einpacken

Da Add-ins in JavaScript geschrieben sind, müssen die Konsolen-Befehle bzw. die *.lcs Skripte noch in die korrekte Syntax übersetzt werden. Dazu gibt es im Add-in Editor eine Hilfe-Funktion, womit dies automatisch umgesetzt werden kann.

Öffnen Sie dazu ein bestehendes Add-in oder erstellen Sie ein Neues.

Scriptline und dadurch auch das Einpacken von Skripten wird nur von LCOS und LCOS SX unterstützt.

Image Added

Fügen Sie den Code-Abschnitt in den Editor ein, wie im obigen Screenshot beschrieben. Etwaige JavaScript-Syntax-Fehler können Sie ignorieren. 

Markieren Sie den Code-Abschnitt und klicken anschließend auf Skript einpacken.

Image Added

Der Editor passt das Skript Zeile für Zeile an und packt dieses in korrekte JavaScript-Syntax ein. Daraus resultiert ein Scriptline Skript.

Image Added

Click on the Add-ins menu entry on the left navigation panel to reach the Add-ins page. Here, you will find all existing Add-ins and may create new ones.

To create a new Add-in click on the Create new Add-in button.

Image Removed

Script wrapping

As Add-ins are written with JavaScript, we need to translate our .lcs script or CLI commands to the correct syntax. Fortunately, there is a helper within the Add-in editor that helps to achieve this with a few steps.
First, open the Add-in you would like to edit or create a new one.

Scriptline and thus script wrapping is only supported for LCOS and LCOS SX as mentioned here.

Image Removed

Now, paste your configuration snippet into the code editor, where mentioned in the script and visible below. You can ignore the JavaScript syntax errors highlighted by the editor.
Make sure your pasted LCOS script is selected/highlighted in the editor and click on the Wrap script button.

Image Removed

The editor now takes each line of the pasted script and wraps it with the correct JavaScript syntax to generate a scriptline script.

Image Removed

Englisch

Click on the Add-ins menu entry on the left navigation panel to reach the Add-ins page. Here, you will find all existing Add-ins and may create new ones.

To create a new Add-in click on the Create new Add-in button.


Script wrapping

As Add-ins are written with JavaScript, we need to translate our .lcs script or CLI commands to the correct syntax. Fortunately, there is a helper within the Add-in editor that helps to achieve this with a few steps.
First, open the Add-in you would like to edit or create a new one.

Scriptline and thus script wrapping is only supported for LCOS and LCOS SX as mentioned here.

Now, paste your configuration snippet into the code editor, where mentioned in the script and visible below. You can ignore the JavaScript syntax errors highlighted by the editor.
Make sure your pasted LCOS script is selected/highlighted in the editor and click on the Wrap script button.

The editor now takes each line of the pasted script and wraps it with the correct JavaScript syntax to generate a scriptline script.


...