2.0.4 findAllList does not find all of the pictures

Asked by Marc Summers on 2020-06-17

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:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Marc Summers
Solved:
2020-06-17
Last query:
2020-06-17
Last reply:
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.

Marc Summers (2aircraft) said : #2

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

RaiMan (raimund-hocke) said : #3

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