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

    Function WinGetPosByHandle

    • Retrieves the position and size of a window.

      Parameters

      • windowHandle: bigint

        The handle of the window.

      Returns Promise<IRect>

      A promise that resolves to an IRect object containing the position and size of the window.

      import { WinGetHandle, WinGetPosByHandle } from '@ahmic/autoit-js';

      const windowHandle = await WinGetHandle('Untitled - Notepad');
      const rect = await WinGetPosByHandle(windowHandle);

      console.log(rect); // Output: { left: 100, top: 100, right: 200, bottom: 200 }