← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #267835]: How to wait for a duplicated Image (Img already in screen, wait for a duplicated Img)

 

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

eduardobedoya posted a new comment:
the y axis is predictable
the x axis is unpredictable
in fact, the region in which Im searching is an horizontal rectangle (all the screen width and 300px height)


Do I first got to find all previous Matches of the Img, count them before
[run another predifined function] and then count them again, and see if another one appear right?
but my problem is when there is no image at the beginning (first count), cuz if so, Sikuli AutoWaitTime takes hole three seconds to set the first count = 0. How can I get the findAll result faster (in 1 sec) if there is not image at the beginning?
I guess I would have to set the autowaittime to 1sec before run the first count, and then restore it to 3secs, cuz in all others findImg actions in my script I would like to wait 3 secs.
Isn't any other way to kinda set autowaittime for a single findAll, (like in the 'wait' action or in the 'exists' actions which have their own autowaittime that can be set individually in each action), How can I change autowaittime for a single findAll?

Is there is another better approach to do this task, please give me a
hing of how would the python code look like?

THanks Advanced.

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