Retrieves the text from a window.
The title of the window to access.
Optional text found in the window.
The maximum number of characters to retrieve. Default is 1024.
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" Copy
import { WinGetText } from '@ahmic/autoit-js';const text = WinGetText('Untitled - Notepad');console.log(text); // Output: "Example text"
https://www.autoitscript.com/autoit3/docs/functions/WinGetText.htm
Retrieves the text from a window.