← Back to team overview

sikuli-driver team mailing list archive

[Question #634286]: Sikuli quits on "if" without error message

 

New question #634286 on Sikuli:
https://answers.launchpad.net/sikuli/+question/634286

I've written a small script to play a game, but it quits without giving me any error message.

I was able to track the problem down to two lines, sometimes it breaks on this line:

if myRegion.inside().exists(Pattern(image).similar(similarity),0):

and sometimes on this line:

while myRegion.inside().exists(Pattern(image2).similar(similarity),0):

(when I put a print command before and after these conditions, I only get the output from the first one)

Note that I've been building my script gradually, and before I started adding "click" commands, I think I didn't get these errors (I think).

I'm running Sikuli 1.1.0 from the command line on Windows.

Any idea what it might be?
Thanks!

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.