Application Object

 

The Application object represents the Voxler program. It is a single instance of Voxler and it is the root of all objects in Voxler. External programs typically create an instance of the Application object during initialization. In VB this is done using the CreateObject function as in:

 

'Create new Voxler application object

 Set VoxlerApp= CreateObject("Voxler.Application")

 

The CreateObject function activates a new instance of Voxler, and returns a reference to the Application object to the script. The GetObject function activates an existing instance of Voxler and returns the reference to the Application object to the script.

 

'Access existing Voxler object

  Set VoxlerApp = GetObject (,"Voxler.Application")

 

When Voxler is started by a script, its main window is initially hidden. To make the Voxler window visible, you must set the Application object’s Visible property to True:

 

Set VoxlerApp = CreateObject("Voxler.Application")

VoxlerApp.Visible = True

 

The Application object provides access to the next level of objects in the hierarchy. Use the CommandApi property to obtain a reference to the Voxler commands.

 

Properties

Application

CommandApi

Name

FullName

Path

Version

Visible

 

Methods

Quit

 

Example

The following script demonstrates how the Application object is used.

 

Sub Main

 'Declares VoxlerApp as an object

  Dim VoxlerApp As Object

 

 'Creates an instance of the Voxler application object

 'and assigns it to the variable named "VoxlerApp"

  Set VoxlerApp = CreateObject("Voxler.Application")

 

 'Make Voxler visible

  VoxlerApp.Visible = True

 

End Sub

 

 

See Also

Automation Model

Introducing Scripter

Working with Scripts

Scripter BASIC Language

Visible Property

CommandApi Property

Automation Example - Application Object