← Back to team overview

sikuli-driver team mailing list archive

[Question #204797]: How to loop in Sikuli

 

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

Sikuli IDE 

hanf = exists(Pattern("EF1.png").similar(0.46))
while hanf:
    click(Pattern("EF1.png").similar(0.46))
    hanf = exists(Pattern("EF1.png").similar(0.46))
    type(Key.ENTER)
    los = exists(Pattern("Los.png").similar(0.74))
    if los :
        
        click(Pattern("Los.png").similar(0.77))
        boden = exists("1343841407875.png")  
        if boden :
            click( "1343841407875.png")  
            
       
        wait("1343828113483.png",80)
        click(Pattern("1343825213187.png").similar(0.80))
        click("T.png")
        hover("Bbf.png")
        click(Pattern("1343825213187.png").similar(0.93))
        click("T.png")
        rw = exists("DerZauberspr.png")
        if rw :
            wait("1343828113483.png",80)
            click(Pattern("1343825213187.png").similar(0.80))
            click("T.png")
            hover("Bbf.png")
            click(Pattern("1343825213187.png").similar(0.93))
            click("T.png")
        kp = exists("KrittischerP.png")
        if kp :
           wait("1343828113483.png",80)
           click(Pattern("1343825213187.png").similar(0.80))
           click("T.png")
        wait(5)               
        click("KRDTHLETT-1.png" ) 
        click(Pattern("1343834651567.png").similar(0.87))
        click("1343835900606.png")
        doubleClick("1343835938763.png")
        click("1343834705676.png")
        rightClick("1343834894255.png")
        click("DiesenGegens.png")
        click(Pattern("1343839368292.png").similar(0.94))
        click( "11.png")
        click("1343834964572.png")
        click("KRDTHLETT-1.png" ) 
        
i want that it loop from here to line1


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