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 Workflow TaskId. If no window for that Workflow exists then an error occurs.

Parameter Description

Title$ The name shown in the title bar of the window.

TaskId This numeric value is the Workflow identifier.

See Also: SendKeys, Shell( ).

Example:

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