Here is my "Cmd.au3" include file, maybe this could become an official UDF library at some point. It has three functions - one to get the window handle from a process ID (GetProcessWin doesn't work for command prompts), the other pair both copy and searche through a Command Prompt's text buffer. I'm not entirely happy about the $aText mechanism in the _CmdWaitList function, which takes a list of values to wait for and returns the index of the first one found. I don't like having to construc