sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23593
Re: [Question #242642]: Custom error handling in Sikuli
Question #242642 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242642
Status: Open => Answered
RaiMan proposed the following answer:
using version 1.0.1 (which has user logging including timestamp) ??
generally:
- to catch <FindFailed> you have to use try/except. handling takes place in the except block.
- to "catch" user input cancellation you have to wrap the input in a function, where you can do what is needed
- abort (shift+alt+c) is not catchable currently (but you might define your own <hotkey> and do what is needed in the handler function)
Come back if you need more (after having read through the docs
http://doc.sikuli.org ;-) the keywords to look for: <see above>
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.