sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #49805
Re: [Question #676844]: if error or cant finde image run last instruction
Question #676844 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/676844
Manfred Hampl posted a new comment:
What you want to achieve might be possible with an array of images and a
loop.
Something like
img_list = ['1.png', '2.png', ...]
i = 0
while i < len(img_list):
if exists(img_list[i]):
click(getLastMatch())
i += 1
else:
i -=1
if i < 0:
quit()
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.