Gets the ID of the control that has keyboard focus in a window.
The title of the window to access.
Optional text found in the window.
The ID of the control that has keyboard focus.
import { ControlGetFocus } from '@ahmic/autoit-js';const className = ControlGetFocus('Untitled - Notepad');console.log(className); // Output: "Edit1" Copy
import { ControlGetFocus } from '@ahmic/autoit-js';const className = ControlGetFocus('Untitled - Notepad');console.log(className); // Output: "Edit1"
https://www.autoitscript.com/autoit3/docs/functions/ControlGetFocus.htm
Gets the ID of the control that has keyboard focus in a window.