How to know how sikuli finishes when running from external application/console

Asked by Mikeldi Latorre

Hello,
I'm running sikuli projects from an external application (AutoIt) from console, and I want to know how can I know if the sikuli project has finished successfully or with errors.
At the moment I'm just waiting 10 seconds and check if the error is present.

Any Idea of how to do it in more trustful and efficient way?

I'm running the sikuli project with "Sikuli-IDE.exe -r project.sikuli --args arg1"

OS: Windows XP (32 bits)
Sikuli Version: win32-0.10.2 (I have problems with Sikuli X, I've already submitted the bug)

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

use the exit() function with a value >0 which is reported back to command line.

But you have to catch any exceptions in your script or use features like exists(), that return Match(True)/False instead of raising a FindFailed exception.

Go back to rc3 (uninstall the current Sikuli and reboot before) and use Sikuli-IDE.bar instead of Sikuli-IDE.exe.

Can you help with this problem?

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

To post a message you must log in.