http://qs321.pair.com?node_id=300968


in reply to GUITEST module - FindWindow Question

Well, FindWindowText will return undef if it can't find a window that matches the given criteria. So how about doing something like this:
my $win; do { select(undef, undef, undef, 500); $win = FindWindowLike(0, "", "FOO"); } until ($win);
And just replace 500 with the number of milliseconds you'd like to wait between each check.

The computer can't tell you the emotional story. It can give you the exact mathematical design, but what's missing is the eyebrows. - Frank Zappa