Retrieves the client area dimensions of a window.
The handle of the window to access.
A promise that resolves to an IRect object containing the width and height of the client area.
IRect
import { WinGetClientSizeByHandle, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = await WinGetHandle('Untitled - Notepad');const clientSize = await WinGetClientSizeByHandle(windowHandle);console.log(clientSize); // Output: { width: 800, height: 600 } Copy
import { WinGetClientSizeByHandle, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = await WinGetHandle('Untitled - Notepad');const clientSize = await WinGetClientSizeByHandle(windowHandle);console.log(clientSize); // Output: { width: 800, height: 600 }
https://www.autoitscript.com/autoit3/docs/functions/WinGetClientSize.htm
Retrieves the client area dimensions of a window.