CloseWind Method

Action Example

 

Encapsulates the AutoMate™ action in the “Window” group, “Close.” Sends a close message to a window. This will usually result in the closing of the window, and in some instances, shutting down the application.

 

Declaration

Procedure CloseWind(Window_: OleVariant; ExactMatch: OleVariant; HandlePassed: OleVariant); safecall;

Description

Specify the title of the window to minimize in the Window Parameter. Set “ExactMatch” to “0” for a substring search or “1” for an exact search.

 

You can attempt to close an application by trying to close an application’s main window.