Adding logic via IF, ELSE statement in Sikuli Java API using the exist method
Asked by
alex
I have the following code:
Screen s = new Screen();
s.find(
s.find(
s.find(
I'm using the Java API in Eclipse. How can I modify this code so that if the image doesn't exist, it moves on to another image, instead of terminating the program?
In Eclipse, due to the auto-complete, I see there is a method named Exists, but I can't figure out how to get it working.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask alex for more information if necessary.
To post a message you must log in.