sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #13075
Re: [Question #208230]: how to wait for a image but just ignore the part of it
Question #208230 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/208230
Status: Open => Answered
RaiMan proposed the following answer:
Currently this is only possible, by dividing the image into the parts
that do not change and use the 2 or 3 most significant parts like this:
if exists("part1.png") and exists("part2.png", 0) and exists("part3.png", 0):
print "found"
else:
print "not found"
part1 is the part, that signals the possibility of appearance (a wait
time can be added like with wait()) and part2 and part3 are used to
verify that (only one search each).
The stuff can be optimized by using restricted search regions together
with nearby(), right(), below(), ...
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.