Retrieves the position and size of a window.
The title of the window.
Optional text found in the window.
The position and size of the window as a IRect object.
IRect
import { WinGetPos } from '@ahmic/autoit-js';const rect = WinGetPos('Untitled - Notepad');console.log(rect); // Output: { left: 100, top: 100, right: 200, bottom: 200 } Copy
import { WinGetPos } from '@ahmic/autoit-js';const rect = 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.