Question #240213 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/240213

    Status: Solved => Open

Luiz is still having a problem:
Hi,

I just found this old project and I want to go back to work on it.
It is the same project of the question, actually.

So the problem is:

def existsAny(reg, imageList):
# for img in imageList:
    for n in range(len(imageList)):
        if (reg.exists(imageList[n], 0)):
            return n
    return -1

it works, but it only returns the first value.

in the case I wonder how to get the second value:

if (existsAny(rHa, ha) and existsAny(rHb, ha)):

I have searched on some Jython docs, specifically on lists, but since I
don't really know nothing about programming, coding, etc. I coudn't
solve the problem.

So.. that's it and thank you for always helping.

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to