← Back to team overview

sikuli-driver team mailing list archive

[Question #263456]: sikuli find same image in screen

 

New question #263456 on Sikuli:
https://answers.launchpad.net/sikuli/+question/263456

I have these "empty checker boxes" images on screen that I would like to count them from top to bottom and hover the mouse over the last one (the one at the bottom) using Sikuli. I don't know if it is really necesary to count them to do so.

I have search on the web and have tried this code to count the images:

    count = 0
    try:
        matches = list(findAll(the empty checker box image))

        count = len(matches)
    except FindFailed:
        pass #nothing to do
    print "found:", count


I also have try this code to hover the mouse over the images, but it hover it randomly:

    for x in findAll(the empty checker box image):
       hover(x)


Thanks Advanced.

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