Function Reference


ControlGetText

Retrieves text from a control.

ControlGetText ( "title", "text", controlID )

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.

Return Value

Success: Returns text from a control.
Failure: Sets @error to 1 and returns a blank string of "".

Remarks

None.

Related

WinGetText, StatusbarGetText, ControlSetText, ControlCommand

Example


Run("notepad.exe")
WinWait("[CLASS:Notepad]")
ControlSetText("[CLASS:Notepad]", "", "Edit1", "New Text Here")
Local $sText = ControlGetText("[CLASS:Notepad]", "", "Edit1")
MsgBox(0, "ControlGetText Example", "The control text is: " & $sText)