# Function Reference

ControlSetText

Sets text of a control.

ControlSetText ( "title", "text", controlID, "new text" [, flag] )

Parameters

title | The title of the window to access.
text | The text of the window to access.
controlID | The control to interact with. See Controls.
new text | The new text to be set into the control.
flag | [optional] when different from 0 (default) will force the target window to be redrawn.

Return Value

Success: | Returns 1.
Failure: | Returns 0 if window/control is not found.

Remarks

None.

Related

ControlGetText, ControlCommand

Example

Run("notepad.exe")
WinWait("Untitled -")
ControlSetText("Untitled -", "", "Edit1", "New Text Here" )