Calling A Com Object In A Vbscript - Symantec WISESCRIPT EDITOR 7.0 SP2 - FOR WISE INSTALLATION EXPRESS V1.0 Installation Manual

Hide thumbs Also See for WISESCRIPT EDITOR 7.0 SP2 - FOR WISE INSTALLATION EXPRESS V1.0:
Table of Contents

Advertisement

Calling a COM Object in a VBScript

WiseScript Editor Reference
Call COM Object
Use this action to create a script to call a COM object in the VBScript. You can manually
enter the script to call a COM object, but the Call COM Object action facilitates this
process by providing information about the COM objects. If the object is registered on
your computer, this action can provide the following functionality:
The object appears in the List Objects drop-down list that is accessed from the
right-click menu.
The object has a List Properties/Methods drop-down that lists the exposed
properties and methods of that object. Example: This drop-down list appears when
you enter the object's name followed by a period.
A help pop-up is associated with the object and its properties and methods. This
pop-up displays help text for these items when they are selected in a drop-down list
or when you select Quick Info from the right-click menu.
When you call an object in a VBScript, the object persists between the execution of that
script and any other VBScripts that are executed by the same WiseScript. (Example: If
the WiseScript executes two VBScripts and the first VBScript calls an object, you do not
need to create the object in the second script to access its properties and methods.)
However, if you create an object in one editor window you will not automatically see its
properties and methods in a second window even though they will execute properly.
See
Calling a COM Object in a VBScript
Get WiseScript Variable
Use this action to create script code that gets a WiseScript variable. You must set the
variable in the WiseScript or another VBScript prior to the Execute VBScript action.
See
Set Variable
on page 114.
In the VBScript, you put the name of the variable in the Get Variable function that
appears when you double-click this action. This action uses the VBScript GetVariable
function.
The sample script SetGetVariable.wse uses the Get WiseScript Variable action in its
VBScript to get a variable that is set in the WiseScript. For details on sample scripts, see
ScriptHelp.htm in the Samples subdirectory of this product's installation directory.
Set WiseScript Variable
Use this action to create a script that sets a variable in the VBScript that can be used in
the WiseScript. You must also set the variable in the WiseScript prior to the Execute
VBScript action, but the VBScript determines the value of the variable.
See
Set Variable
on page 114.
To use the variable in the WiseScript, you must place the variable after the Execute
VBScript action. This action uses the VBScript SetVariable function.
The sample script SetGetVariable.wse uses the Set WiseScript Variable action in its
VBScript and then uses this variable in the WiseScript. For details on sample scripts, see
ScriptHelp.htm in the Samples subdirectory of this product's installation directory.
When you use the Execute VBScript action in a WiseScript, a new tab appears at the
bottom of the Installation Script pane. When you click this tab, the VBScript window
on page 81
WiseScript Actions
81

Advertisement

Table of Contents
loading

Table of Contents