← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #164161]: [How to] Capture screenshot directly using java Robot features

 

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

RaiMan posted a new comment:
@comment #5

Here you have the base for a solution using Sikuli's Java Screen class
in a Sikuli script:

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!)

more on this in https://answers.launchpad.net/sikuli/+question/170365

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