AppActivate Instruction

Syntax

AppActivate Title$
-or-
AppActivate TaskID

Group

Miscellaneous

Description

Form 1: Activate the application top-level window titled Title$. If no window by that title exists then the first window with at title that starts with Title$ is activated. If no window matches then an error occurs.

Form 2: Activate the application top-level window for task TaskID. If no window for that task exists then an error occurs.

Parameter Description
Title$ The name shown in the title bar of the window.
TaskID This numeric value is the task identifier.

See Also:SendKeys, Shell( ).

Example

Sub Main
' make ProgMan the active application
AppActivate "Program Manager"
End
Sub