sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #12313
Re: [Question #204853]: if... : go to
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.