FocusEx Method

Action Example

 

Encapsulates the AutoMate™ action in the “Window” group, “Focus.” Same as Action.Focus, except contains support for partial title matches. Brings a window in front of all the other windows on the system based on the window’s title caption.

 

Declaration

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

Description

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

 

NOTE: To focus a window based on the handle of a launched EXE file, use BASIC language command AppActivate in conjunction with the Shell command.