← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #202942]: exit() inside try/except

 

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

RaiMan posted a new comment:
BTW this could all be much simpler:

if regVig.exists(Pattern("Ocarreramexc.png").similar(0.50).targetOffset(-2,43)):
   pressKEY(1,Key.ENTER)
   popup("Ocorreram exceções neste cálculo!".decode('utf-8'))
   exit()
else:
   wait(8)
   calcular()

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.