← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #156203]: Customize Sikuli IDE - getting source code

 

Question #156203 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/156203

    Status: Open => Answered

RaiMan proposed the following answer:
You will always need some "wrapper" around any Sikuli features, since it
is "only" an API, that can be used either with the Sikuli IDE using
Python as script language or plain Jython the same way or on the Java
level using the Java version of the API.

So usually one develops an automation workflow in the Sikuli IDE until
it is running without errors. Then you can use the different options to
run your workflow from command line without touching the IDE. This
feature can easily be integrated in any Frameworks that allow to call
something on the command line (e.g some other automation tools, that
lack the features of Sikuli)

The option to "convert" the workflow into a Java program gets
interesting, if you have an application ready programmed in Java and
want to integrate Sikulis features tighter into your Java app. This
option is interesting, if you want to give your application to other
people, since you might produce one jar-file, that contains all
necessary stuff and can just be started with "java -jar myapp.jar".

Especially on the Python level it is rather easy to create a small GUI
application with little effort, that gives some options to the user of
your workflow. The packaging into a jar file is still possible, but
needs a little bit more wrapping effort, that can be minimized, if you
decide to store the needed images somewhere in the web.

And another new option might be interesting for your purpose too: Sikuli
guide. This is an extension, that allows to implement some guided
workflows that might produce tailored scripts, that can be called again.

So many options, especially when you say " I am not a programmer", what
you have to be if you want to reuse some parts of Sikuli's source code.
For most of the above options, it is enough to be a scripter with some
basic knowledge of Python language.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.