Focus Method

Action Example

 

Encapsulates the AutoMate™ action in the “Window” group, “Focus.” Brings a window in front of all the other windows on the system based on the window’s title caption.

 

Declaration

Procedure Focus(WindowTitle: OleVariant); safecall;

Description

Specify the title of the window to focus in the Window Parameter. This call does not support substring matches. To perform substring matches, use Action.FocusEx.

 

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