Returns the contents of a Windows message box.
MsgTextGet(window-name)
(s) window-name full title of the message box window.
(s) contents of the message box.
This function returns the text contents of a standard Windows message box. "Window-name" must be the full title of the message box window, and is case-sensitive.
Note1: This function may not work with the types of message boxes created by the application you wish to control if it is not a standard Windows Message box. However, if this function does work, it is the easiest way to keep tabs on an application.
Note2: This function will not work with the types of message boxes created by most WIL functions, since they are not standard Windows message boxes.
msg = MsgTextGet("Microsoft Word") If msg == "Search text not found" SendKey("~") EndIf Message("MsgTextGet"," Message Text Gotten.")