The 'Basic Script' action is used to run an embedded or external BASIC script or to create a user defined function that may be called in subsequent expressions or BASIC scripts. BASIC scripting can be used for advanced flow, COM objects, API calls, and the creation of custom dialog boxes.
From the Task Builder's Available Actions pane, expand the Advanced folder and double-click the 'Basic Script' action or drag this action onto the Steps pane. This opens the action's properties window as shown below:
In the Location of script parameter of the General tab, select one of the following drop-down options then enter the applicable properties:
Script is embedded in task file. If this option is selected, click the Edit Script button to open the BASIC Script IDE, which helps in writing, debugging, and testing your Automate BASIC script.
Script is located in an external file: If this option is selected, click the Open Folder button and navigate to the script (.bas) file.
To set the Description tab properties, refer to Description Tab Options.
To set the Error Causes and On Error tab properties, refer to Step Error Handling.
When finished, click OK to save settings and close the properties dialog window.
BASIC Script Action
BASIC Scripts and Custom Functions
Introduction to Scripting
The BASIC Language, All Groups