← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #674136]: Loop break by if exists ("path to image") not work :(

 

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

Adrian Zieliński posted a new comment:
I also tried sth like below:

while True:
    if not exists("1537362590995.png",0):
        for n in range(10):
            type(Key.F6, KeyModifier.SHIFT)
            wait(2)
            for n in range(4):
                type(Key.TAB)
            type(Key.ENTER)
            x=0
            y=+16
            mouseMove(x,y)
            mouseDown(Button.LEFT)
            mouseUp(Button.LEFT)
            wait(1)
    else:
        wait(1)
        break

Now, no warn statements inside debug console was showed, loop works but
no break when img ("1537362590995.png",0): will show.

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