Gets the position of a control in a window, relative to the window itself.
The title of the window to access.
Optional text found in the window.
The control to get the position for.
A promise that resolves to the position of the control as a Rect object.
Rect
import { ControlGetPos } from '@ahmic/autoit-js';const rect = await ControlGetPos('Untitled - Notepad', '', 'Edit1');console.log(rect); // Output: { left: 0, top: 0, right: 100, bottom: 100 } Copy
import { ControlGetPos } from '@ahmic/autoit-js';const rect = await ControlGetPos('Untitled - Notepad', '', 'Edit1');console.log(rect); // Output: { left: 0, top: 0, right: 100, bottom: 100 }
https://www.autoitscript.com/autoit3/docs/functions/ControlGetPos.htm
Gets the position of a control in a window, relative to the window itself.