How do I prevent the sikuli-ide from manually asking for command line options via the initial GUI popup?

Asked by David Douglas

I have Mac OSX Mavericks, and I've downloaded the Sikuli-IDE.app program. It works, but I'd like to specify the command line options FROM the command line and not have that dumb java popup asking me for my command options in a GUI. Incredibly obtuse, this, how do I stop it from showing up?

Even when I add my own command line options, the popup still shows up asking me if I'd like to add some more.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
David Douglas
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
David Douglas (ddd1600) said :
#1

I'm not sure why I haven't found this information on any tutorials online, maybe I just didn't look hard enough, but if I simply want to run a pre-existing sikuli script in an automated fashion, all I have to do is open the *.sikuli file from the command line and it will run itself. Workaround. Problem solved as far as I'm concerned.

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

yes, totally agreed: nice idea - bad implementation. sorry ;-)

If you want to stick with version 1.0.1 for a while (until the final 1.1.0 is ready):

<path-to-your>SikuliX-IDE.app/Contents/runIDE -r <path-to-some>script.sikuli -- and what else you need here

For the fact that you still have to sustain the ugly yellow badge, I truly apologize.

If you have time and interest:
look at version 1.1.0 pre-final http://sikulix.com

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

Uuups, crossed ;-)

your workaround is ok, as long as you do not need any extra command line options.

But if this is sufficient, fine.

Revision history for this message
Dhinakar Kalyanasundaram (dhinakar-k-j) said :
#4

Hi David Douglas, RaiMan,
I still get 'SikuliX: collect runtime options' if I try to invoke the *.sikuli file.
May I know how you were able to get rid of it?
My intention is to schedule the execution of *.skl or *.sikuli file in Jenkins.
Thank you in advance.

Revision history for this message
Dhinakar Kalyanasundaram (dhinakar-k-j) said :
#5

By the way, my operating system is Windows7 and I tried the below commands @cmd line or console.
java -jar sikuli-ide.jar -r d:\Sikuli\scripts\Test.skl
&
java -jar sikuli-ide.jar -r d:\Sikuli\scripts\Test.sikuli

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

@Dhinakar
with version 1.0.1 you should use sikuli-script.jar to run scripts from command line.

Revision history for this message
Dhinakar Kalyanasundaram (dhinakar-k-j) said :
#7

Hi RaiMan, thanks for your prompt response. I quickly tried the 1.0.1 version, I still get the 'SikuliX: collect runtime options' popup. I tried both .skl and .sikuli options. Not sure what mistake I am doing. Let me recheck, meanwhile if you have any suggestions please let me now. Thanks a lot.

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

@Dhinakar
Are you sure, you ran (version 1.0.1):

java -jar sikuli-script.jar -r some.sikuli

Revision history for this message
Dhinakar Kalyanasundaram (dhinakar-k-j) said :
#9

Thanks for the prompt response again.
I checked and I am using version 1.0.1.
Where can I find 'sikuli-script.jar'. I only tried with 'sikuli-ide.jar'.
That is probably the issue.

Revision history for this message
Dhinakar Kalyanasundaram (dhinakar-k-j) said :
#10

Hi, I just read through one of the other threads.
https://answers.launchpad.net/sikuli/+question/233962
1. Run runSetup.cmd
2. Select Pack 2 (Pack1 & Pack2 are mutually exclusive)
I will try that tomorrow, it should work I think.
Sorry for the trouble.
Thanks a lot for the support.

Revision history for this message
David Douglas (ddd1600) said :
#11

I still haven't solved this issue. I'm running this command successfully, except for that the GUI/popup asking for command line options stalls the entire process and still requires GUI-based user input to click on the OK button of the GUI popup asking for command line options that I've already passed in

I ran this command to get this far:

    java -Dsikuli.fromCommandLine -jarApplications/SikuliX-IDE.app/Contents/sikuli-ide.jar -r sikuli_costar.sikuli

It runs after I click the damned OK button.

Perhaps there is an option I could pass in that would disable the infernal popup?

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

@David
see your own question about that:

-Dsikuli.FromCommandLine

Revision history for this message
David Douglas (ddd1600) said :
#13

@RaiMan, running the command "-Dsikuli.FromCommandLine" does NOT stop the GUI popup.

Revision history for this message
David Douglas (ddd1600) said :
#14

I hope the boys at MIT will absolutely grimace when they hear what I did to work around the popup....

Used a terminal program called 'cliclick' (downloadable with brew) to automatically click the 'OK' button on the sikuli command line options popup.

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

I cannot see what you are doing, but just tested again on a Mac OS X 10.8 with version 1.0.1

java -Dsikuli.FromCommandLine -jar Sikuli-IDE.app/Contents/sikuli-ide.jar -r some-script.sikuli

does not show up with the dialog box, that has to be clicked OK, but only the ugly yellow badge.

--- I hope the boys at MIT will absolutely grimace ...
... they are no longer active there and with this SikuliX stuff they do not have to do anything anymore.
I have taken over more than 2 years ago.