← Back to team overview

sikuli-driver team mailing list archive

[Question #328376]: unreliable statement

 

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

This part just isnt reliable in detection, i tried a sleep but it didn't help much
    else:
        click(Pattern("1469222076906-1.png").targetOffset(-647,497))
        if exists("1470676354473.png"):
            exit()


for n in range(1):
    reg = Region(609,140,894,766)
    if reg.exists(Pattern("1469321512445.png").similar(0.50), 0) or reg.exists(Pattern("1470254195609.png").similar(0.50), 0) or reg.exists(Pattern("1470143332576.png").similar(0.50), 0):    
        click(Pattern("1469305690339.png").similar(0.90).targetOffset(-70,-9))
 #       wait(.5)
        type(Key.ENTER)        
        type("v", KeyModifier.CTRL)
        type(Key.ENTER)
        type("s", KeyModifier.CTRL)
    else:
        click(Pattern("1469222076906-1.png").targetOffset(-647,497))
        if exists("1470676354473.png"):
            exit()
        else:
            click(Pattern("1469206576875.png").targetOffset(-7,0))
            wait(4.0)





Thanks in advance

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