Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: How to Run a section of code for a particular amount of time ?

by marto (Cardinal)
on Nov 11, 2016 at 09:54 UTC ( [id://1175731]=note: print w/replies, xml ) Need Help??


in reply to How to Run a section of code for a particular amount of time ?

Hello, again... we've discussed this module for some time now, I've suggested in the past that you read the documentation. The WaitWindowLike method sounds more suitable for your use case:

WaitWindowLike($parent,$wndtitle,$wndclass,$wndid,$depth,$wait) Function which allows one to wait for a window to appear vs. using har +d waits (e.g. sleep 2). parent - Where to start (parent window) wndtitle - Regexp for the window title wndclass - Regexp for the window class name wndid - Numeric Window or Control ID depth - How deep should we search before we stop wait - How many seconds should we wait before giving up

Note the last line. So once again, please take the time to read and understand the documentation for the tools you choose to use.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-03-28 17:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found