← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #252629]: for loop/if elif statement not working correctly

 

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

Jonas Maurer posted a new comment:
I had to reformat the identations due to a display glitch:

for idx in range(5,106):
	m = exists("caption.png"):
    if m :
        click(m)
        type(Key.F2)
        type("a", KeyModifier.CTRL)
        type("c", KeyModifier.CTRL)
        click("CLICKBOX-4.PNG")
        click("BOX2-4.PNG")
        type("a", KeyModifier.CTRL)
        type(Key.DELETE)
        type("v", KeyModifier.CTRL)
        type(str(idx))
        type(Key.HOME)
        for c in range(25):
            type(Key.DELETE)
        click("1406907972716.png")
        type(Key.PAGE_DOWN)
        print idx
    else:
        click("1406907972716.png")
        type(Key.PAGE_DOWN)
        print "skip" + str(idx)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.