Syntax |
AppActivate name$ | taskID |
|
Description |
Activates an application given its name or task ID. |
|
Comments |
The AppActivate statement takes the following parameters: |
|
|
Parameter |
Description |
|
Name$ |
String containing the name of the application to be activated. |
|
TaskID |
Number specifying the task ID of the application to be activated. Acceptable task IDs are returned by the Shell function |
|
When activating applications using the task ID, it is important to declare the variable used to hold the task ID as a Variant. The type of the ID depends on the platform on which The Basic Control Engine script is running. |
|
Example 1 |
This example activates Program Manager. Sub Main() AppActivate "Program Manager" End Sub |
|
Example 2 |
This example runs another application, activates it, and maximizes it. Sub Main() Dim id as variant |
|
See Also |
Shell (function); SendKeys (statement); WinActivate (statement). |
|
Notes |
|
A |