Scripting

Scripting consists of one or more of the following commands:

sw__0018.gif

 

These commands can be added as part of a script-only task through the Add Script Wizard (on the toolbar, or on the menu Actions->New Script), or directly added to run program tasks by clicking on the Scripting button below the Program to Run prompt.

 

Note: Scripting is available in the 32-bit version only.

 

Script Type: Send Keys

Script Type: Focus

Script Type: Wait

Script Type: Display Message

Script Type: If Window...

Script Type: If Time Elapsed...

Script Type: If Value...

Script Type: Start Program

Script Type: Close Program

Script Type: Exit Script

Script Type: Send E-mail

Script Type: File Actions

Script Type: Set Value

Script Type: Start Script

Script Type: DDE

 

TIP: To enter a task that only involves scripting, select a task type of Run Program, and fill in N/A as the command to run. Alternately, you may wish to use the Add Script Wizard .

 

Scripts may also be edited as text. This allows for the quick entry of scripts for advanced users.

 

Script Templates

Script Templates (consisting of several normal script commands) can be used in the Add Script Wizard to quickly add common actions.

 

To change or add templates, select File->Setup->Script Templates on the main menu.

 

Script templates can be made interactive by using the [? TYPE Prompt] token when filling out script action details, where:

 

TYPE is one of FILE, WINDOW, or TEXT

Prompt is the question to be asked when the script template is applied.

 

Example:

The Display Message action asks for a message title and a message. If you enter [? TEXT Enter a title] into the title field, Schedule Wizard will ask for text (with the prompt Enter a title) when the template is used, and insert the response into the resulting script.

 

If you have any questions or suggestions regarding scripting, please contact us via e-mail at support@schedulewizard.com. We would like to ensure that you can accomplish what you need to with Schedule Wizard and its scripting.