← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #143626]: Can I use sikuli in Microsoft Visual Studio 2008 Environment

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
CURRENTLY (Sikuli X 1.0) that really depends on what you want to get from Sikuli:
--1. tighly coupled direct access in your C++ code:
since the feature level functions (find, click, observe, ...) are implemented on the Java level, you have to dive into JNI, which is mainly used for Java -> C, but also allows C -> Java.

--2. loosely coupled access to workflow snippets
have a java dispatcher running, that can be triggered to run Sikuli snippets implemented in Java on request. You have to use some communication stuff between your C++ and the Java stuff: (Pipes / subprocessing, XML-RPC or other IP based concepts, ...)

--3. running Sikuli scripts with subprocessing
every job you want to be done by Sikuli is prepared on the Python script level and run by just asking Sikuli to run that script (e.g. dispatching a shell or running it parallel in a subprocess). Be aware: every script run has a startup time of about 3 - 5 seconds.

For 1. and 2. : Generally it is recommended to use the Sikuli IDE in
parallel to test your approach and the workflow snippets, bfore
implementig them on the Java level.

FUTURE:
They are working on an C++ library implementation of Sikuli's core features, but this is in a very early state:
https://github.com/doubleshow/libsikuli

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