How do I capture status messages (informative, warning and error messages)?

GuiXT has predefined variables for your use.
_message stores the last informative message (green)
_lastwarning stores the last warning message (yellow)
_lasterror stores the last error message (red)
Other predefined variables are listed in GuiXT documentation
../../docu_e/doc_systemvariables.html