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.
The text of the control.
import { ControlGetText } from '@ahmic/autoit-js';const text = ControlGetText('Untitled - Notepad', '', 'Edit1');console.log(text); // Output: "Sample text" Copy
import { ControlGetText } from '@ahmic/autoit-js';const text = 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.