exists(image) is true even when the image is not there yet
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 exists(image1):
do something
if exists(image2):
do another thing
if exists(image3):
....
img = find(image3)
....
...
The if exists(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\
at org.sikuli.
at org.sikuli.
at sun.reflect.
at sun.reflect.
at java.lang.
org.sikuli.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Miyamoto
- Solved:
- Last query:
- Last reply: