WiseScript Editor Reference 144
Creating Custom Dialog Boxes
To create a custom dialog box script
Note
Before you write a custom dialog box script, review the introductory material in About
Script Editor on page 21. Also see Conditions and Loops on page 32 and Variables and
Expressions on page 33.
1. Open the dialog box in the Custom Dialog Editor.
See Editing Dialog Boxes on page 120.
2. Select View menu > Dialog Script Editor.
The Dialog Script Editor opens.
3. Create the script as you would in Script Editor.
The sample scripts Event Handler.wse and License Agreement.wse use scripting to
handle mouse events. For details on sample scripts, see ScriptHelp.htm in the Samples
subdirectory of this product’s installation directory.
Dialog Box Script Actions
The script actions available in the Dialog Script Editor are a subset of the actions in
Script Editor, with the addition of these script actions that manipulate controls on the
dialog box programmatically: Set Control Attributes, Set Control Text, and Set Current
Control.
Call DLL Function on page 46
Check Configuration on page 51
Check If File/Dir Exists on page 55
Display Message on page 69
Edit INI File on page 71
Edit Registry on page 71
Else Statement on page 75
ElseIf Statement on page 75
End Statement on page 76
Get Registry Key Value on page 85
Get System Information on page 87
If Statement on page 90
Parse String on page 100
Prompt for Filename on page 102
Read INI Value on page 104
Remark on page 106
Set Control Attributes on page 110
Set Control Text on page 111
Set Current Control on page 112
Set Variable on page 113
While Statement on page 116
Dialog Box Script Examples
To see an example of a dialog box script
1. Open the sample script Event Handler.wse in the Samples subdirectory of this
product’s installation directory.
2. In Script Editor, double-click the Custom Dialog “Event Handler” script line.