Question #670456 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/670456

RaiMan proposed the following answer:
ok, the situation is a bit complicated and the current docs do not
reflect that sufficiently, sorry.

In short for Python scripting:
- setFindFailedHandler and setFindFailedResponse are Region specific, which 
means they are only used, for the Region, they are specified for, when a 
search/FindFailed happens.
- when a FindFailed situation happens, first the handler is visited, if 
specified for the region object. Then the setting of the FindFailedResponse of 
that region object is obeyed (which in turn might have been modified before in 
a handler)
- response and/or handler can be specified globally (FindFailed. 
setFindFailedResponse and FindFailed. setFindFailedResponse), so that every 
region object created afterwards will inherit the global settings

I will revise the docs accordingly asap.

For Python scripting, there is one special thing to be aware:
see bug 1778855

-- 
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

Reply via email to