It can be accessed at: Window-->Custom Commands.
This GUI provides a convenient shortcut for running common commands. This GUI can show multiple pages (tabs) of commands. Each command provides a custom set of inputs. Clicking in an input field will show auto-complete options, if available. Hovering over the run button will allow you to preview the command that will be sent to the server.
The panel can show multiple pages of commands. Additional pages can be loaded by choosing File-->Load... from the file menu. You can also choose File-->Reset Tabs to reset the opened tabs to a predetermined state set by the instrument admin. This default state can be set, by an admin, by simply loading the desired, default, set of pages and choosing File--> Set Reset State.
New command pages can be created in the Editor Panel with File-->New Command. Each command page is composed of a list of commands (left section). A command list can be given a custom title by filling in the "Title" text input. To add a command, to the command list choose a command from the drop-down list (on the left) and press Add. It will appear in the command list where it can be copied, removed, or reordered (via drag/drop). Selecting a command in the list will allow it to be edited (center section).
Each command can be given a custom title by filling in the "Title" text input. A command is composed by a series of inputs, each of which corresponds to an input to the command, at the command line (standard input), or is a special customized input. To add a standard command input choose one from the drop-down list and press "Add". Inputs can be reordered or removed from the list, like commands. Selecting a command allows its inputs to be edited and will show a live preview at the bottom of the editor panel.
Note: You can add custom input by typing any name you want. Details of this choice are discussed in the Advanced section.
How a command string is generated from its inputs and how auto-complete options are determined, is highly customizable. If all inputs are standard, then sensible default behavior will be present by default. If default behavior is desired then only the following should be edited:
Show as checkbox - Useful for flag command arguments. Flag arguments are optional boolean arguments which are either present (true) or absent (false).
Visible - Should the input be shown?
Highly customized, command inputs can be created through scripting. Using scripting you can describe how an arbitrary, custom set of inputs are converted to command strings. Behind the scenes, all command processing occurs in a special javascript namespace. Every time an input is modified, the following process occurs to generate the command string:
Typically, each input appends some text to the cmd variable by evaluating to something like: cmd + <some expression>. In this way , a command string is progressively built by running each input's script. However, its also possible for the last input to simply calculate and assign the entire command string to cmd (in this case its often made invisible and simply serves as a final processor).
To effectively script its important to know what functions and variable are available. For example, the cmd variable, is initialized to the command's name, and must contain the full command string by the time the last input's Command Text script is run. Here is a description of what is available:
To display auto-complete options: