AppActivate Instruction
SyntaxGroupAppActivate Title$ -or- AppActivate TaskID
MiscellaneousDescription
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.Sandbox
Form 2: Activate the application top-level window for task TaskID. If no window for that task exists then an error occurs.
Sandbox mode blocks this instruction.
See Also
Parameters Description Title$ The name shown in the title bar of the window. TaskID This numeric value is the task identifier.
SendKeys, Shell( )
Sub Main ' make ProgMan the active application AppActivate "Program Manager" End Sub