← Back to team overview

sikuli-driver team mailing list archive

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

xiaocezi posted a new comment:
i must to add [Add source folder] with "C:\\Users\\xie\\AppData\\Roaming\\Sikulix\\Lib"  and[ Add zip/jar/egg] sikuliapi.jar for the project,in project->properties ->PyDev-PYTHONPATH->External Libraries page。
and then write the script like:
------------
from sikuli import *

print "Hello World!Jython"
x=1
print x

any = Screen(0)

any.click("1m.png")

------------
i don't know why it doesn't work in comment 8.
maybe something is wrong?

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.