← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #204805]: beginner how can i say sikuli to go back to lne 1 ?

 

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

Deses posted a new comment:
Make a function and make it call itself recursively?

Just make sure to add a flag to exit the loop when you are done, or that
"hanf" will eventually not exist.

def hanf():
    hanf = exists(...)

    while hanf:
        click(...)
        hanf = exists(...)
        type(Key.ENTER)
        los = exists(...)
        if los :
            click(Pattern(...)
            boden = exists(....)
            if boden :
                click( ....)
            wait(...)
            ((text))
            click("KRDTHLETT-1.png")
	hanf()

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