|
Dialog Boxes |
|||
|
AutomationWizard Dialog Boxes AutomationWizard's prompt boxes make it simple for you to customize scripts to make them easy to use. The capability provides for "Windows" like interface for people to read prompt messages and input answers required to run the script. DropList Box This box displays a dropdown list that allows the user to make a selection. The box returns a number (if you use %PromptDropList), or a string (if you use $PromptDropList). This example creates a simple breakfast menu of 5 items from which the user can select. The script provides for 5 choices, set the default selection to 1, and will time out and make selection 1 in 30 seconds if the user does not make a selection. REM DropList Dialog Box Example Breakfast Menu
Figure 2 Console Messages
If the script is modified to use the string version of the commands, it would look like this: REM DropList
Dialog Box Example The console message for the string version is shown in Figure 3.
Figure 3 Console Messages with String Version of DropList
Prompt List The prompt List box provides a scrollable list of items. The script uses the PromptList function as shown below: Writecon
"Welcome to Breakfast"
Figure 4 PromptList display of breakfast menu
PromptYN A prompt box with a Yes/No answer can be constructed by using the PromptYN command.
|
|||
|
|
|||