how to create executable file

Asked by adapasainath on 2010-01-30

i created .skl file by using export executable command but how to directly run the script from the desktop without opening sikuli gui interface?

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2010-02-01
Last reply:
2011-09-30
limbo (ngeorgousis) said : #1

You can't directly create an EXE file. You can run your script without opening the GUI by using a command line.
For instance:
You can create a shortcut to Sikuli-IDE.bat file on windows and add your .skl file as parameter.
The following is a working example for LCDS.skl (Sikuli Executable)
"C:\Program Files\Sikuli\Sikuli-IDE.bat" LCDS.skl"

adapasainath (adapasainath) said : #2

its not working

Sergey Darovskih (darovskih) said : #3

you can use command line tool (download it from here - http://groups.csail.mit.edu/uid/sikuli/download.shtml) and then create BAT file with the following text:

"<installationdirectory>\sikuli-script.exe yourscript.sikuli".

This file will run your script. After that, create an icon with shortcut to the BAT file.

adapasainath (adapasainath) said : #4

that feature is not supported in current version

getjet (fp2000fp) said : #5

I have a great workaround solution for Windows users.
Put the .skl executable file on the desktop together with a shortcut to the Sikuli Ide application. To start your skl script just drag and drop on the application link.
Almost as simple as double clicking and works like a charm!

MavsX41 (mavsx41) said : #6

^ Yeah, that's not bad. I wonder if i can get this working for a network source. thanks for the idea getjet

Mayuresh (mayureshkrishna) said : #7

You can create BAT files like:

START /D"D:\Program Files\Sikuli\" Sikuli-IDE.exe genius.skl

philthee (psrouji) said : #8

hey im totally new to any kind of programming but i found a much easier way on windows.right click your .skl file and go to-opens with and change-now browse to sikuli program directory and double click the .bat file in there. Works like a charm.

Oh bummer. To bad it's not part of the existing version!

Raymond (darkray16) said : #10

I'm very new to using command line tool. I'm trying to run the command "c:/program files (x86)/sikuli x/sikuli-IDE.bat myscript.sikuli" while I'm in the folder that contains myscript.sikuli but I'm getting the response:
 "c:/program files (x86)/sikuli x/sikuli-IDE.bat myscript.sikuli" is not recognized as an internal or external command, operable program or batch file

But when I run it without the myscript.sikuli parameter, it launches sikuli X just fine. What am I doing wrong?

Raymond (darkray16) said : #11

Nevermind. I figured it out. Need to put the myscript.sikuli parameter outside of the quotes.

One more thing though, it opens Sikuli just fine and loads the script. But how do I get it to autorun the script at least once on starting?

Gerson (gerson-a) said : #12

Hi
There is a better and easier way to do things (as always)!

follow these steps:
1- Make, test and export to an executable (Ctrl+Skift+E)
   the file will be saved with an extension *.skl (ex: LCDS.skl)

2- Because every file with extension *.skl is a Sikuli file (we assume)
   we can go to this file, right click, and make it to open with Sikule
   Make sure to mark to always use this program as default.

3- click to run the LCDS.skl and it will start automatically.

So simple :-)

Gerson

RaiMan (raimund-hocke) said : #13

@ Gerson

This was not meant by the original question (a .skl is only a zipped version of the corresponding .sikuli folder, which makes it easier to move it around over the net, and .skl have some limitations (e.g. cannot be imported)).

The question was to have an .exe file that could be started standalone, without the need to have Sikuli on the machine.

Gerson (gerson-a) said : #14

Ok
Thanks for your prompt reply.

But, it does solve the problem !
It is transparent to me (as I need to have Sikule tool anyway installed)
if I want to run varios .skl I only need to make a bat file

and by the way - Nice tool!!
I am doing an evaluation and we most likelly are going to use it in our tests.

Regards
Gerson

> To: <email address hidden>
> From: <email address hidden>
> Subject: Re: [Question #99185]: how to create executable file
> Date: Fri, 30 Sep 2011 12:30:47 +0000
>
> Question #99185 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/99185
>
> RaiMan posted a new comment:
> @ Gerson
>
> This was not meant by the original question (a .skl is only a zipped
> version of the corresponding .sikuli folder, which makes it easier to
> move it around over the net, and .skl have some limitations (e.g. cannot
> be imported)).
>
> The question was to have an .exe file that could be started standalone,
> without the need to have Sikuli on the machine.
>
> --
> You received this question notification because you are a direct
> subscriber of the question.

Can you help with this problem?

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

To post a message you must log in.