Retrieves the position and size of a window.
The title of the window.
Optional text found in the window.
A promise that resolves to an IRect object containing the position and size of the window.
IRect
import { WinGetPos } from '@ahmic/autoit-js';const rect = await WinGetPos('Untitled - Notepad');console.log(rect); // Output: { left: 100, top: 100, right: 200, bottom: 200 } Copy
import { WinGetPos } from '@ahmic/autoit-js';const rect = await WinGetPos('Untitled - Notepad');console.log(rect); // Output: { left: 100, top: 100, right: 200, bottom: 200 }
https://www.autoitscript.com/autoit3/docs/functions/WinGetPos.htm
Retrieves the position and size of a window.