← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #658728]: How to work around an occasional image

 

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

    Status: Answered => Open

DAVID MASTROIANNI is still having a problem:
Settings.MinSimilarity = 0.95
def try_click(our_image):
        try:
                click(our_image)
        except FindFailed:
                pass
while True:
    try_click(Pattern("1506689688440-1.png").targetOffset(44,-61))
    try_click("1506689574881-3.png")
    try_click("1506771151595.png")
___________________________________________________________
I click run and nothing happens, without the above code my script runs perfectly, aside from the 3 images showing up sometimes

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