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

    Function WinGetPos

    • Retrieves the position and size of a window.

      Parameters

      • windowTitle: string

        The title of the window.

      • windowText: string = ''

        Optional text found in the window.

      Returns IRect

      The position and size of the window as a IRect object.

      import { WinGetPos } from '@ahmic/autoit-js';

      const rect = WinGetPos('Untitled - Notepad');

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