sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #56264
Re: [Question #694553]: SikuliX IDE - Get Pixels
Question #694553 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/694553
Status: Open => Answered
RaiMan proposed the following answer:
PIL does not work with Jython (C-based).
SikuliX has a (secret ;-) feature Location.getColor(), which returns a
Java object Color.
How to get the color information from that object, look at the java docs:
https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/java/awt/Color.html
In SikuliX scripts you principally can use any Java classes.
You might find a suitable Java library, put it on the class path at runtime and use it.
https://jython.readthedocs.io/en/latest/JythonAndJavaIntegration/
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.