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