Question #209608 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/209608

    Status: Open => Answered

RaiMan proposed the following answer:
---  if the required image is found with in wait time , then script should wait 
until the wait time gets complete.
this is what you asked - may be I missunderstood:
- You want to wait for the image for maxTime
- if image is found within maxTime (means earlier),
- the script should wait until total maxTime exceeds 

What about
imageWait = time.time()-start # time before find starts
if imageWait < maxWait: # time to find shorter than maxWait
    wait(maxWait - imageWait) # if yes, wait the rest of time until maxWait 
exceeded

--- wait(some_image, maxWait) will wait until image is found. if image is found 
then it will proceed to next step.
yes, correct.
If this is what you need only: forget my suggestion and be happy ;-)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to