Viz Arc User Guide

Version 2.0 | Published July 03, 2024 ©

Script View

In Script View, you can write your own custom script in JavaScript language through Google's V8 or Microsoft's JScript (ECMAScript3) or in VBScript language, as in the following example:

images/download/attachments/58341593/language_overview.png

It's possible to create custom forms and components, such as text boxes and buttons.

images/download/attachments/58341593/2_scriptsectionRUN.png

To run the script, select the Start button images/download/thumbnails/158770527/buttonstart.jpg on the top left of the window.

images/download/attachments/58341593/3_scriptsectioneditForm.png

Form Design can be edited by selecting the UI button images/download/thumbnails/58341593/uicode_button.png . Every element can be selected and moved, aligned and distributed on the main form.

To go back to code editing, select the CODE button.

images/download/attachments/58341593/script_main.png

To edit a script, press the Stop button images/download/thumbnails/158770527/buttonstop.jpg on the top of the script main window.

images/download/attachments/58341593/console_crop.png

Console logs and debugs are displayed in the CONSOLE pane.

images/download/thumbnails/58341593/importclipfile.png

Import code internally from the clipboard or an external text file in the script pane.


images/download/thumbnails/158770527/scriplanguiages.png

Use the Language menu to select a scripting language.

It is recommended to use JavaScript ES6 language when possible.

In edit mode, Script Callbacks can be selected from the list and added:

images/download/thumbnails/58341593/callbacks.png

You can locate a custom function by selecting it from the Functions list:

images/download/thumbnails/58341593/functions.png

See Also