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

    Function ControlGetPos

    • Gets the position of a control in a window, relative to the window itself.

      Parameters

      • windowTitle: string

        The title of the window to access.

      • windowText: string

        Optional text found in the window.

      • controlId: string

        The control to get the position for.

      Returns Rect

      The position of the control as a Rect object.

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

      const rect = ControlGetPos('Untitled - Notepad', '', 'Edit1');

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