strText = wnd.value;
wnd.value = strText;
Gets or sets the text of the current window. If the window is an edit control the text is the content of the control. If the window is a combobox the text is the one displayed in the edit (or static) part of the combo. If the window is a button the text is the one displayed on the button. For all other windows the text is the window title.
// Test get/set text
wnd.value = "New window text";
if (wnd.value != "New window text")
Env.LogError("Could not set window text");