2.0.4 findAllList does not find all of the pictures

Asked by Marc Summers

In version 1.1.2
I was using result = list(findAll("somepicture.png"))

Now in version 2.0.4 I am using

result = findAllList("somepicture.png")

But the problem is that the new findAllList does not find
all of the pictures on screen, and also it skips over some
even though they are all the same picture.

So the list it presents is not complete as it was before in 1.1.2

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Marc Summers
Solved:
Last query:
Last reply:
Revision history for this message
Marc Summers (2aircraft) said :
#1

OK, I figured out what I need to change.

list(findAll(Pattern("somepicture.png").similar(0.89)))

Add Pattern and .similar to the findAll call and that
appears to fix the problem.

Revision history for this message
Marc Summers (2aircraft) said :
#2

list(findAll(Pattern("morebutton.png").similar(0.89)))

Revision history for this message
RaiMan (raimund-hocke) said :
#3

Anyways thanks for the question.
I should explain the new implementation in the docs.