← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #170365]: Name Error using Java classes in imported script --- workaround

 

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

RaiMan proposed the following answer:
Here you have the base for a solution using Sikuli's Java Screen class:

import org.sikuli.script.Screen as JScr
s = JScr()
bufImg = s.capture().getImage()

bufImg contains a Java buffered image of the screenshot.

Have a look at http://sikuli.org/doc/java-x/org/sikuli/script/Screen.html for the possible parameters of capture()
(this is another capture() as the one on the Python/Jython API level!)

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