Sets the text of a control in a window.
The handle of the window to access.
The handle of the control to set text for.
The text to set for the control.
A promise that resolves to 1 if successful, or 0 otherwise.
import { ControlSetTextByHandle, ControlGetHandle } from '@ahmic/autoit-js';const controlHandle = await ControlGetHandle(windowHandle, 'Edit1');await ControlSetTextByHandle(windowHandle, controlHandle, 'Hello, World!'); Copy
import { ControlSetTextByHandle, ControlGetHandle } from '@ahmic/autoit-js';const controlHandle = await ControlGetHandle(windowHandle, 'Edit1');await ControlSetTextByHandle(windowHandle, controlHandle, 'Hello, World!');
https://www.autoitscript.com/autoit3/docs/functions/ControlSetText.htm
Sets the text of a control in a window.