Creating a Visual Basic script

The command line interface provides access to Visual Basic scripts (VBScripts) from within the user interface.

User created scripts must be stored in My Documents\My ASMI 20xx Projects\commands, where xxxx is the software release number.

You can use any text editor to create scripts. Some VBScript editors such as Microsoft Visual Basic Editor (VBE) or Adersoft VBSEdit, have built-in debuggers to highlight incorrect code.

You can write scripts that uses parameters which are typically entered by the user as command line arguments in the software command line interface. Alternatively, you can include a prompt for user input. This allows users to enter parameters if the script is run from within the software.

Note: Not all functionality is accessible using the API. More functionality is accessible to scripts written by hand and run from the command line, than macros that are recorded and run from within the interface.
  1. Record a macro or type your script into a text editor or Visual Basic debugger.
  2. Save the macro or script to a file with a *.vbs extension in My Documents\My ASMI 20xx Projects\commands where xxxx is the software release number.

The script can be played from the Command Line dialog (View tab > Windows panel > User Interface > Command Line).