← Back to team overview

sikuli-driver team mailing list archive

[Question #266392]: Is it possible to wait for an image 9secs OR at least wait for 2 secs in total

 

New question #266392 on Sikuli:
https://answers.launchpad.net/sikuli/+question/266392

Is it possible to wait for an image 9secs OR at least wait for 2 secs in total
I mean sometimes the image appears in 0secs, then I would like to wait for 2secs more,
but if the image appears in 3secs, I would like to avoid waiting any longer
Is this possible?
Hope it is understandable

Currently Im doing...
wait(2)
reg.wait(Img, 9)
By doing this I have to wait 2secs + the time image takes to appear

But I would like to do something like...
(reg.wait(Img,9)) or (wait(2))
By doing this I would only have to wait the time image takes to appear OR in best scenario only 2secs

I say so cuz this is inside a function I have to repeat several times.

Thanks Advanced.


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