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

    Status: Open => Answered

Roman Podolyan proposed the following answer:
In general to make something "forever" one should use "while(True)"


def kill_enemy():    # define a function containing actions to kill enemy
    popup('Enemy killed')

#    put here some preparation steps if needed

while(True):    #  repeat killings forever
   kill_enemy()

-- 
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