Re: [Sikuli-driver] [Question #665281]: Prevent abrupt program shutdown

2018-03-06 Thread RaiMan
Question #665281 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665281 RaiMan posted a new comment: Another option always is, to use exists(): if exists(image, 0): # just one search # do what is needed else: # do something else -- You received this question

Re: [Sikuli-driver] [Question #665281]: Prevent abrupt program shutdown

2018-03-05 Thread Connor Colenso
Question #665281 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665281 Status: Answered => Solved Connor Colenso confirmed that the question is solved: Thanks Roman Podolyan, that solved my question. -- You received this question notification because your team Sikuli

Re: [Sikuli-driver] [Question #665281]: Prevent abrupt program shutdown

2018-03-05 Thread Roman Podolyan
Question #665281 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665281 Roman Podolyan posted a new comment: More information on handling exceptions in Python / Jython can be found here: https://docs.python.org/2/tutorial/errors.html#handling-exceptions -- You received this

Re: [Sikuli-driver] [Question #665281]: Prevent abrupt program shutdown

2018-03-05 Thread Roman Podolyan
Question #665281 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/665281 Status: Open => Answered Roman Podolyan proposed the following answer: If the problem is really that simple, you need just to put Hover into try-except block, and catch FindFailed exception In my

[Sikuli-driver] [Question #665281]: Prevent abrupt program shutdown

2018-03-05 Thread Connor Colenso
New question #665281 on Sikuli: https://answers.launchpad.net/sikuli/+question/665281 Sorry if this is super basic, I feel like it is but cant seem to formulate into a coherent sentence what I need to google. Effectively im having an issue where I need to be able to press a specific button,