Creating A User-Defined Action: Tutorial - Symantec WISESCRIPT EDITOR 8.0 - REFERENCE FOR WISE PACKAGE STUDIO V1.0 Reference

Table of Contents

Advertisement

Creating a User-Defined Action: Tutorial

WiseScript Editor Reference
b.
Open WiseScript Editor and select File menu > New > Empty Project.
c.
In Script Editor, double-click your user-defined action in the Actions list. If it
includes a dialog box, the dialog box opens. Complete the dialog box and click
OK.
d.
Save the project and click Test to test your script.
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,
or in the shared directory that is specified in Preferences. 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.
Using Script Editor
29

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Wisescript editor 8.0

Table of Contents