@ahmic/autoit-js
    Preparing search index...

    Function WinGetClientSizeByHandle

    • Retrieves the client area dimensions of a window.

      Parameters

      • windowHandle: bigint

        The handle of the window to access.

      Returns Promise<IRect>

      A promise that resolves to an IRect object containing the width and height of the client area.

      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 }