Sets the keyboard focus to a control in a window.
The title of the window to access.
Optional text found in the window.
The ID of the control to focus.
1 if success, 0 if failure.
import { ControlFocus } from '@ahmic/autoit-js';ControlFocus('Untitled - Notepad', '', 'Edit1'); Copy
import { ControlFocus } from '@ahmic/autoit-js';ControlFocus('Untitled - Notepad', '', 'Edit1');
https://www.autoitscript.com/autoit3/docs/functions/ControlFocus.htm
Sets the keyboard focus to a control in a window.