Create VBScript - CAPTUREit - Foundation 23.1 - Foundation 23.1 - AnyDoc - external

CAPTUREit

Platform
AnyDoc
Product
CAPTUREit
Release
Foundation 23.1
License

The VBScript window is used to add or change VBScript. You may enter code manually, or select from the provided CAPTUREit objects.

  • To enter code manually, click and type in the VBScript window.

  • To select from the provided CAPTUREit objects, click the VBScript Functions button and double-click the folders to access the available functions, operators, and constants.

The VBScript toolbar contains the following tools:

Button

Description

Undo

Reverses the last action.

Clear

Deletes the selected text (this does not put the text in the Paste buffer).

Copy

Copy the selected text.

Paste

Pastes copied text.

Find

Opens the Find window to search for specific text within the script.

Compile

Performs a simple syntax check of the script.

Script Open

Opens a text file. The contents of the text file replaces the current contents of the VBScript window. This can be used to import a script previously saved as a text file.

Save Script

Saves the current script to a text file. This can be used to export a script so it can be used in a different template or zone.

Print Script

Prints the script to the default printer.

On-line Help

Opens the Microsoft VBScript Help. Use it for information related to native VBScript components. Use the main Help file for information related to the CAPTUREit object model.

The VBScript Functions window, a code generating tool, eases the coding process two ways:

  • It lists the VBScript components available (e.g., constants, operators, and functions, CAPTUREit objects).

  • It facilitates the writing of syntactically correct code.

  1. From the VBScript window, click the VBScript Functions button.
  2. Double-click the Functions folder. Another set of folders appears. In this example, Text functions have been selected. Double-click the Text folder. A list of text functions appears in the right pane.
  3. Double-click a function to add it to your code in the VBScript window. In this example, Left is selected. Left appears in the code main window.
  4. Add or delete expressions as needed, as well as any other relevant code, then compile the code by clicking the Compile button. Compiling the code checks only for simple syntax errors. Always thoroughly test your code before deploying into a production environment.