WWControl() Function
- Last UpdatedApr 29, 2021
- 1 minute read
Restores, minimizes, maximizes, or closes a Windows application.
Syntax
WWControl (apptitle, control);
Parameters
apptitle
The application title or Windows task list name of the running application you want to restore, minimize, maximize or close. A literal string value, message tagname, or string expression.
control
Determines the action you want to take on the specified Windows application. A literal string value, message tagname, or string expression with following values:
Restore - activates and shows the application window
Minimize - activates and minimizes the application window
Maximize - activates and maximizes the application window
Close - closes the application
Example(s)
This script restores the calculator application if it is already running.
WWControl ("Calculator","Restore");
This script closes the WindowViewer.
WWControl (InfoAppTitle("View"),"Close");