← Back to team overview

sikuli-driver team mailing list archive

[Question #645942]: "while (count < 10):" loop doesn't seem to be working

 

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

I have this other code "while (count < 46):
            click(Pattern("1486584943427.png").similar(0.69).targetOffset(-340,86))
            count = count + 1"

and it works fine.

I tried to turn that into this code "while (count < 10): 
        x1 = 640
        y1 = 512
        x2 = 660
        y2 = 530
        dragDrop(Location(x1,y1),Location(x2,y2))
        count = count + 1"

it just skips over the above like it doesn't exist, doesn't throw an error, just ignores it.

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