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

    Function WinGetText

    • Retrieves the text from a window.

      Parameters

      • windowTitle: string

        The title of the window to access.

      • windowText: string = ''

        Optional text found in the window.

      • characterCount: number = 1024

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

      Returns string

      The text of the window as a string.

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

      const text = WinGetText('Untitled - Notepad');

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