Hide command prompt when executing Sikuli in command line mode

Asked by Silverallis

Hi Sikuli Greats...

Will I be able to hide the Command prompt, when running Sikuli in command line mode.

I have .NET application, which invokes Sikuli in Command line mode. I would like to hide the cmd.exe during execution. Is it possible ?

Thanks for your time n help.

-Silverallis

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Silverallis
Solved:
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

use the sikuli-ide-w.bat instead.

Revision history for this message
Silverallis (silverallis) said :
#2

Hi Raiman,

When I use the below command in a bat file

"C:\Program Files\Sikuli X\Sikuli-IDE-w.bat" "C:\New\abc.sikuli"
pause

It invokes Sikuli and need to execute in UI.

right now when I create a BAT file to execute.

java -jar "%SIKULI_HOME%\sikuli-script.jar" "C:\New\abc.sikuli"
pause

It opens the command prompt, I need to minimize or hide the command prompt for better execution of my script, Do you know how to minimize or hide the cmd prompt which can be included in the bat file.

Once again thanks for your time n help

-Silverallis

Revision history for this message
Silverallis (silverallis) said :
#3

Hi Raiman..

I found the answer. I need to create another bat which will invoke the first one and execute in a minimized window.

BAT_1
java -jar "%SIKULI_HOME%\sikuli-script.jar" "C:\NEW\abc.sikuli"
exit

BAT_2
start "" /min BAT_1.bat

Thanks once again for your time ..

Cheers!!!
Silverallis

Revision history for this message
RaiMan (raimund-hocke) said :
#4

oh yes, this is a solution --- but only the second best ;-)

--- the original bat has to be used as:
"C:\Program Files\Sikuli X\Sikuli-IDE-w.bat" -r "C:\New\abc.sikuli"

--- your own bat has to use javaw instead of java.