Function Reference


ControlFocus

Sets input focus to a given control on a window.

ControlFocus ( "title", "text", controlID )

Parameters

title The title of the window to access.
text The text of the window to access.
controlID The control to interact with. See Controls.

Return Value

Success: Returns 1.
Failure: Returns 0.

Remarks

None.

Related

ControlGetFocus, ControlCommand, ControlSend

Example


Run("notepad.exe")
WinWait("[CLASS:Notepad]")
ControlFocus("[CLASS:Notepad]", "", "Edit1")