If a static window, SQAWaitForObject will tell you if the window was found by returning a 0 to the Result variable. If the window is dynamic, a little more difficult, but also possible by using wildcards in the recognition string for the window title.
Result = SQAWaitForObject(<recMethod$>,<timeout&&g t
Automation Team Lead
Rental Quality Assurance