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

    Function ControlGetPosSync

    • 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 IRect

      The position of the control as a Rect object.

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

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

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