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

    Status: Open => Answered

RaiMan proposed the following answer:
So it is simply, that you have to start your program again after events
E and F?

If yes, that is super easy ;-)

At the beginning:

# I guess this starts your program
type("d",KEY_WIN)
doubleClick(Pattern("1346049773218.png").similar(0.85))

# replace it with
def startProgram():
    type("d",KEY_WIN)
    doubleClick(Pattern("1346049773218.png").similar(0.85))
    wait(3) # adjust to your needs
startProgram()

# now in the elif blocks for E and F put this just before the break
startProgram()

So before it goes back to step 2, it restarts your program, which is the
only thing, that has to be repeated before looping again to wait for
A...D

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to