Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: GUITEST module - FindWindow Question

by batkins (Chaplain)
on Oct 21, 2003 at 16:06 UTC ( #300968=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://300968]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2022-12-06 00:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?