Edit

SetFieldValue (windowRef, fieldNumOrName, stringValue)

Attempts to set the user interface field to the given value. Further validation may be invoked. The actual value set in the field is returned by the function. Works with check boxes and popups as well.

For editable text fields, this will set the content of the field to stringValue.

For popup menu controls, it will select the item matching stringValue. You can include an @ wildcard at the end of a partial item name.

Setting a button's value to "1" is equivalent to clicking the button.

For buttons, checkboxes, and radio buttons, you must only set a value of "1" or "0". Any other value will set the title of the control.

Availability: within an MWScript handler