Eclipse/PyDev: writing sikuli scripts in Jython

Asked by gary

Hi,

Do you know of any documentation or tutorials I can follow to get to grips with writing Sikuli in Jython on eclipse.

I have tried writing code in the same way that I would have in the Sikuli IDE but this does not seem to work.

Thanks for your help.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
Last query:
Last reply:
Revision history for this message
Eugene S (shragovich) said :
#1
Revision history for this message
gary (gr8gary) said :
#2

Hi,

So once I have imported sikuli (from sikuli.Sikuli import * ) do I write code exactly as I would in the Sikuli IDE.
It is not clear to me where I can find any guides on how to write sikuli code once I have imported this.

Revision history for this message
Best RaiMan (raimund-hocke) said :
#3

--- since you are working with 1.0.1, you should stick with the description on
https://github.com/RaiMan/SikuliX-API/wiki/Usage-in-Java-programming
as already suggested in your other question.
(the link mentioned in comment #1 is for 1.0RC3, which is no longer supported)

--- you are scripting with Python language using the Jython interpreter you have activated in your project properties. Exactly the same as in the Sikuli IDE, except the 2 additional initial statements mentioned in the above guideline.

Revision history for this message
gary (gr8gary) said :
#4

Thanks RaiMan, that solved my question.