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