← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #684105]: Finding Two different images

 

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

    Status: Solved => Open

xyz_User is still having a problem:
I seem to be getting an error as well:

testingThisFunction() #Random Target TypeError: calliopeMassCureWounds()
takes exactly 2 arguments (0 given)

Here's the code:

def testingThisFunction(first, second):
    imageCount = 0
    if squareArea2.exists(first,0.5): 
        imageCount += 1
        if squareArea4.exists(second,0.5):
            imageCount += 1
    return imageCount == 2

if testingThisFunction("1568620179920-6.png", "1568621143400.png"):
    doubleClick(Location(639,686)) 
    click(Location(Location(664, 572)))
    callMyNextFunction()
    waitForUi()
else:
    sleep(0.1)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.