@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 Promise<IRect>

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

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

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

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