KB no longer maintained - Voxler is a retired product. Golden Software retired products are still supported, but no longer receive new features or updates. Many of Voxler's features are moving to Surfer . Please contact support@goldensoftware.com with any questions. |
This article contains a sample script that demonstrates the various properties of the Voxler application object.
To run this script:
- Copy the script below, or click here to download the BAS file: ApplicationObject.BAS
- In a Windows Explorer window, navigate to C:\Program Files\Golden Software\Voxler 4\Scripter.
- Double click on Scripter.exe to launch Scripter.
- Press Ctrl+A to select all of the existing lines then press Delete.
- If you copied this script, press Ctrl+V to paste it into Scripter. If you downloaded it, click File | Open, select the BAS file from your downloads directory, and click Open.
- Click Script | Run to run the script.
*********
'******************************************************************************************** ' ApplicationObject.bas ' This script demonstrates the various properties of the Voxler application object. ' '******************************************************************************************** ' If Voxler is running, retrieve the current instance of Voxler. Otherwise, ' create a new instance of Voxler. Function VoxlerApplication() On Error Resume Next Set VoxlerApplication = GetObject(, "Voxler.Application") If Err.Number <> 0 Then Set VoxlerApplication = CreateObject("Voxler.Application") End If On Error GoTo 0 End Function Sub Main 'Retrieve running instance of Voxler or create a new instance of Voxler Dim VoxlerApp As Object Set VoxlerApp = VoxlerApplication() 'Make Voxler visible VoxlerApp.Visible = True 'Access the application and return the name Debug.Print VoxlerApp.Application.name 'Return the name of the application Debug.Print "Application name is "; VoxlerApp.name 'Return the full path and name of the application Debug.Print "Application path and name is "; VoxlerApp.FullName 'Return the path to the Voxler application Debug.Print "Application path is "; VoxlerApp.Path 'Return the version of Voxler currently running Debug.Print "Voxler version number is "; VoxlerApp.Version 'Make Voxler visible VoxlerApp.Visible = True 'Access the command interface Set CommandApi = VoxlerApp.CommandApi 'Close Voxler VoxlerApp.Quit End Sub
Updated February 21, 2019
Comments
0 comments
Please sign in to leave a comment.