How to tell Sikuli to go through the screen from top to bottom?

Asked by Glenna

I have a word doc that contains one graphic that shows up many times. I want to tell it to go through the document starting from the first line all the way to the last line, find this graphic and put 1, 2, 3, 4.... next to each of them. The order here is important but when I use the find() function, it looks like it's picking up the graphic randomly and throwing off the order. I wonder if there is a way to solve it? Thanks a lot!

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Glenna
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

use findAll() and sort the results top down (example see docs)

Revision history for this message
Glenna (x-jingge) said :
#2

Hi Raiman, do you mind sharing a link to the example docs? Thank you!

Revision history for this message
Glenna (x-jingge) said :
#3

Found it!