The commands that you are looking for are Capture or CaptureBox. You can look them up in the help or the command wizard. Another ways is if you are in the editor, select Insert~Capture or Insert~CaptureBox from the main menu and the wizard will help you create the commands.
These commands will allow you to select an entire window or a part of a window and grab all of the text that QARun sees in that area. After grabbing the text, it will place it in a variable for you to use.
Also, if you are going to use capture or capturebox, be sure to use LTrimStr(var) & RTrimStr(var) these commands will cut off any leading or trailing blank spaces that QARun captures with the text. These commands can be combined with the capture commands.