ActivateApp Function
- Last UpdatedFeb 21, 2017
- 1 minute read
Activates an already running Windows application.
Important: The ActivateApp() function does not work on 64-bit versions of the Windows operating system.
Syntax
ActivateApp apptitle;
Parameters
apptitle
The application title or Windows task list name of the running application you want to activate.
Example(s)
This script checks if a command prompt window is already open, and if so, activates it. Otherwise it starts the command prompt window.
IF InfoAppActive( InfoAppTitle("cmd")) == 1 THEN
ActivateApp InfoAppTitle("cmd");
ELSE
StartApp "cmd";
ENDIF;