Running Sikuli X from command line

user2928496 picture user2928496 · Nov 19, 2013 · Viewed 7k times · Source

I have figured out how to run Sikuli X from command line using:

@start C:\SikuliX\runIDE.cmd -r C:\Users\Robert\Documents\Automation\test.sikuli

exit

My problem is when it runs it opens up another command window, runs the program and finishes but then doesn't close the command window it opens. I was wondering if anyone knew how to close that command window it opens? I could get Sikuli to do the whole find the exit button and close it like that but i don't want to do that for fear something might not shutdown right.

Thanks in advance for anyone who can help me figure this out.

Answer

foxidrive picture foxidrive · Nov 19, 2013

Try this: it depends if the executable is a command line program or a gui window.

@echo off
start "" /w /b C:\SikuliX\runIDE.cmd -r C:\Users\Robert\Documents\Automation\test.sikuli
exit

Actually, I see it is a batch file, so try this:

@echo off
call C:\SikuliX\runIDE.cmd -r C:\Users\Robert\Documents\Automation\test.sikuli
exit