sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29401
[Question #258209]: f.find makes interactive sikuli to start up again if image isnot found
New question #258209 on Sikuli:
https://answers.launchpad.net/sikuli/+question/258209
I'm using a wrapper to post commands into the interactive Sikuli: SikuliX Package Build: 1.0.1 12SEP2013160242
Hello, this is your interactive Sikuli (rules for interactive Python apply)...
the script is as follows:
img1="...\Temp\MasterImage.png"
f=Finder(img1)
img2="...\Images\xxx.png"
f.find(img2,0.95)
rr=[]
while f.hasNext():
rr.append(f.next())
if not(hasNext()):
f.destroy()
print(rr)
When the image xxx.png is found the script runs OK (only one instance of image xxx exists on Master)
When the image xxx.png is not found : f.find(img2,0.95)
invokes the restart of the interactive sikuli and the remainder of the script is not executed correctly.
Why restarts the interactive Sikuli on that point
Can you help me out?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.