sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #44956
Re: [Question #660917]: how to run a sikuli script in jython.exe or jython IDE
Question #660917 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/660917
RaiMan posted a new comment:
I am sorry to say, that your solution in comment #5 is a possibility, but not the recommended way for SikuliX.
So I take the right to hide your comment, so others might not be confused.
Still the recommended way for any Jython environment
- have sikulixapi.jar on the Java classpath at runtime
- at the beginning of your script say:
import org.sikuli.script.SikulixForJython
from sikuli import *
So your "wrong" script would shrink to:
import org.sikuli.script.SikulixForJython
from sikuli import *
print "Hello World!Jython"
x=1
print x
click("1m.png")
... except the first 2 lines the same as in the SikuliX IDE - which was
the goal for the solution.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.