SetFocus Method (BrowserObject)

Class

BrowserObject class.

Action

Gives focus to the control.

Availability

This functionality is supported only if you are using the Open Agent.

Syntax

control.SetFocus ( )

Notes

SetFocus gives the input focus to the specified control, which means it makes it the control to which the GUI directs keystrokes.

It is not necessary to call SetFocus before using any of the functions that operate on controls. Call it in cases where you plan to use TypeKeys to pass keystrokes to a pop-up window, and you need to display the window first.

Example

BasicControls.MsuiaTab1.Button.Simple.ButtonA.SetFocus()