Question #668736 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/668736
Description changed to: Good morning. I am developing a game bot with infinite loop with many if's conditions, it's almost done, the main problem is one of the if exists(image) is getting true when the image is not there. example: while (ch.hasWindow() & running): .... if (image1): do something break if (image2): do another thing break: if (image3): .... img = find(image3) click(img) .... ... The if(image3): is the last if inside while loop, but it's getting true even when the image is not there yet. [error] script [ arrayDeMonstros ] stopped with error at line --unknown-- [error] Error caused by: Traceback (most recent call last): File "C:\SikuliX\arrayDeMonstros.sikuli\arrayDeMonstros.py", line 43, in <module> hero = find(heroMax) Line 2782, in file Region.java at org.sikuli.script.Region.wait(Region.java:2782) at org.sikuli.script.Region.find(Region.java:2329) at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) org.sikuli.script.FindFailed: FindFailed: 1524942610020.png: (822x628) seen at (46, 128) with 0,94 in S(0)[0,0 1920x1080] E:Y, T:3,0 Line 2782, in file Region.java -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp