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

    Function ControlGetText

    • Retrieves the text from a control in a window.

      Parameters

      • windowTitle: string

        The title of the window to access.

      • windowText: string

        Optional text found in the window.

      • controlId: string

        The ID of the control to retrieve text from.

      • characterCount: number = 1024

        The maximum number of characters to retrieve. Default is 1024.

      Returns Promise<string>

      A promise that resolves to the text of the control.

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

      const text = await ControlGetText('Untitled - Notepad', '', 'Edit1');

      console.log(text); // Output: "Sample text"