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

    Function WinGetClientSizeByHandleSync

    • Retrieves the client area dimensions of a window.

      Parameters

      • windowHandle: bigint

        The handle of the window to access.

      Returns IRect

      An IRect object containing the width and height of the client area.

      import { WinGetClientSizeByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js';

      const windowHandle = WinGetHandleSync('Untitled - Notepad');
      const clientSize = WinGetClientSizeByHandleSync(windowHandle);

      console.log(clientSize); // Output: { width: 800, height: 600 }