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

    Function WinGetPosByHandleSync

    • Retrieves the position and size of a window.

      Parameters

      • windowHandle: bigint

        The handle of the window.

      Returns IRect

      An IRect object containing the position and size of the window.

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

      const windowHandle = WinGetHandleSync('Untitled - Notepad');
      const rect = WinGetPosByHandleSync(windowHandle);

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