Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: GUITEST module - FindWindow Question

by batkins (Chaplain)
on Oct 21, 2003 at 16:06 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2024-03-29 07:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found