WiseScript Editor Reference
24
Creating a User-Defined Action: Tutorial
This tutorial guides you through the process of creating a user-defined action named
Wait. The Wait action contains a custom dialog box in which you can specify how many
milliseconds to pause the installation.
To create a new blank script for the action
1. Select File menu > New.
In Script Editor, you should see a completely empty script.
2. Select File menu > Save.
The Save As dialog box appears.
3. Save the script file in the Actions subdirectory of this product’s installation directory.
Name the file Wait.
Your new action appears in the Actions list in Script Editor after you close and re-
open WiseScript Editor.
To create a dialog box for the action
1. From Event, select Exit.
To write a script action that interacts with the developer who uses it, you must add
a Custom Dialog script line, which you must store in the Exit script.
A user-defined action requires a dialog box only if it has parameters that you need
to change when you use the action.
2. In the Actions list, double-click the Custom Dialog action.
The Dialog Box Properties dialog box appears.
3. In Dialog Title, enter “Enter Time to Wait” and click OK.
The Custom Dialog Editor opens.
4. Click
on the toolbar.
The Text Control Settings dialog box appears.
5. In Text, enter “Milliseconds to Wait” and click OK.
6. Click
on the toolbar.
The Edit Text Control Settings dialog box appears.
7. Enter the following on the dialog box and click OK.
In Default, enter %WAIT_TIME%.
In Variable, enter WAIT_TIME.
8. Click
on the toolbar.
The Push Button Control Settings dialog box appears.
9. Enter the following on the dialog box and click OK.
In Label, enter OK
Mark the Return to Previous Dialog action.
Содержание ALTIRIS INVENTORY 7.0 SP2 - FOR NETWORK DEVICES V1.0
Страница 1: ...WiseScript Editor Reference ...
Страница 31: ...WiseScript Editor Reference 31 ...
Страница 91: ...WiseScript Editor Reference 91 ...
Страница 148: ...WiseScript Editor Reference 148 ...