Sets input focus to a given control on a window.
ControlFocus ( "title", "text", controlID )
| title | The title of the window to access. |
| text | The text of the window to access. |
| controlID | The control to interact with. See Controls. |
| Success: | Returns 1. |
| Failure: | Returns 0. |
Run("notepad.exe")
WinWait("[CLASS:Notepad]")
ControlFocus("[CLASS:Notepad]", "", "Edit1")