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

    Status: Open => Answered

RaiMan proposed the following answer:
sikuli-java.jar cannot be used to run scripts (it is for use with Java
programming or external Jython and other Java aware scripting
languages))

you either have to use sikuli-ide.jar or sikuli-script.jar.

On Windows it is recommended to use the bundled cmd-scripts.

If you want to run scripts using sikuli-java.jar, then this must be on
the class path and you have to use an external Jython (installed
yourself) to run the script (jython  test.sikuli\test.py).

But in these cases, you have to tell Sikuli separately (e.g. using 
setBundlePath()), where the script finds the images. 
And you need at the beginning of the script:
import org.sikuli.basics.SikuliXforJython
from sikuli import *

(see https://github.com/RaiMan/SikuliX-API/wiki/Usage-in-Java-
programming)

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to