← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #253810]: [1.0.1] Java: running a Sikuli script (Jython)

 

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

    Status: Answered => Open

Christoph is still having a problem:
Your code helped a lot. It seems only sikuli-script.jar works. Before I
used the *-ide and *-java versions which didn't work.

Currently I'm stuck at the last part here with the array:

runSikuli("c:/end2end/sikuli/package/test.skl");

function runSikuli ($sikuli_script) {
    $sikuli = new Packages.org.sikuli.scriptrunner.JythonScriptRunner;
    $sikuli.init(null);

    $skript = new java.io.File($sikuli_script);
    $array = new Array(new Array{"",""});
    $sikuli.runScript("D:\End2End\sikuli\skripte\test.sikuli\Test.py",$sikuli_script,$array,null);
}

With this code it says me: "missing : after property id at 30.08.2014
12:26:34". I'm not very safe with java/javascript.

I'm using sahi os here, which i beginn to love. I'm new at both tools
and the end2end testing stuff. But a combination of booth tools will
give you a very strong toolset for this.

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