hide command prompt when launching sikuli

Asked by Chetan

------------------ possible solutions ---------------------

see comments #4 and #6

--------------------------------------------------------------------

i launch sikuli using commend line. however it keeps the comman line open. i want that the command line should be hidden

cmd /K cd C:\Program Files\Java\jdk-14.0.2\bin && java -jar "C:\p4\AUTOMA~1\FEATTE~1\Common\UIAUTO~1\sikulixapi-2.0.5.jar" -r "C:\p4\AUTOMA~1\FEATTE~1\FEAT\Viewer\Menu\TESTFI~1\ValidateFileMenu.sikuli" --args "C:\Users\labuser\AppData\Local\Temp\JFEAT_~1\Menu\VALIDA~2\sikuliOutput_1689069030374.txt" "Exchange-Pro" "Trunk" "" ""

image:
https://1drv.ms/i/s!AiK8y8l1yY8qllTFEBLTTO1HtCwd?e=NbrnfA

is there a way i can hide the command line altogether?

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
muhammad ehnaf
Solved:
Last query:
Last reply:
Revision history for this message
Best muhammad ehnaf (ehnaf) said :
#1

To hide the command line altogether and prevent it from staying open after launching Sikuli, you can use the start command in the Windows command prompt. Replace cmd /K with start /B in your command, like this: start /B "" cmd /C cd C:\Program Files\Java\jdk-14.0.2\bin && java -jar "C:\p4\AUTOMA~1\FEATTE~1\Common\UIAUTO~1\sikulixapi-2.0.5.jar" -r "C:\p4\AUTOMA~1\FEATTE~1\FEAT\Viewer\Menu\TESTFI~1\ValidateFileMenu.sikuli" --args "C:\Users\labuser\AppData\Local\Temp\JFEAT_~1\Menu\VALIDA~2\sikuliOutput_1689069030374.txt" "Exchange-Pro" "Trunk" "" ""
By adding start /B "" before your original command, the command prompt will be hidden while Sikuli is running. The /B switch ensures that the command is started without creating a new window.

With this modification, you should no longer see the command prompt window after launching Sikuli. try https://aestheticfont.online/

Revision history for this message
Chetan (cshamdas) said :
#2

thanks for the response . is it possible to minimise it? if i hide it altogether then it would be difficult to know if sikuli even ran or not

Revision history for this message
Chetan (cshamdas) said :
#3

also i tried with /B now the prompt does not come but i think sikuli also does not run

Revision history for this message
Chetan (cshamdas) said :
#4

an alternative i am thinking is can be to use "start /MIN java..."

Revision history for this message
masuo (masuo-ohara) said :
#6

@Chetan
If you start SikuliX using a batch file shortcut with [Runtime size] set to minimize, the command prompt window will open in a minimized state.
(1) Create a batch file to start SikuliX.
(2) Create a shortcut for the created batch file.
(3) In the properties of the shortcut, set [Runtime size] to minimize.

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

I think with comments #4 and #6 it can be set to solved.

Revision history for this message
Chetan (cshamdas) said :
#9

thanks everyone. this forum and everyone has been a time and life saver for us. we have decided to go with start / min for now
thanks @ramam you approach also works and thanks. we are using start / min for now as it required only one line change and i do not have full control of system / infra at machine level so this looked best bet

Revision history for this message
Chetan (cshamdas) said :
#10

Thanks muhammad ehnaf, that solved my question.