Find Fail retry skip abort

Asked by Steve

What is the command for this function? I have found -

static org.sikuli.script.FindFailedResponse PROMPT
FindFailedResponse: should display a prompt dialog with the failing image having the options retry, skip and abort

I have tried putting PROMPT and static org.sikuli.script.FindFailedResponse into the area where we would put = type('07926415707')

is there a command like type for FindFailedResponse ?

Thanks in advance

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

looks like Java:

s = new Screen();
s.setFindFailedResponse(FindFailedResponse.PROMPT);
s.find("someimage");

now you will get the prompt if the find fails.

javadocs:
http://nightly.sikuli.de/docs/index.html (version 1.1.0)

Revision history for this message
RaiMan (raimund-hocke) said :
#2

sorry, again:

s = new Screen();
s.setFindFailedResponse(FindFailed.PROMPT);
s.find("someimage");

BTW: s might be any region, which means, you can use this region specific.

Can you help with this problem?

Provide an answer of your own, or ask Steve for more information if necessary.

To post a message you must log in.