note
batkins
Well, FindWindowText will return undef if it can't find a window that matches the given criteria. So how about doing something like this:
<code>
my $win;
do {
select(undef, undef, undef, 500);
$win = FindWindowLike(0, "", "FOO");
} until ($win);
</code>
And just replace 500 with the number of milliseconds you'd like to wait between each check.
<div class="pmsig"><div class="pmsig-185222">
<hr>
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
</div></div>
300938
300938