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

    Status: Open => Answered

RaiMan proposed the following answer:
CapturePrompt is only half of the story: only the overlay window, without the 
capture logic behind. It is not really a public API.
(from: http://sikuli.org/doc/java-x/) 

to operate a capture:

ScreenImage scrImg = screen.capture();  // whole screen
String scrImgFile = scrImg.getFilename(); // stores image file as png in temp

or more compact:
String scrImgFile = screen.capture().getFilename();

If you want to store your image in a specific location:

ScreenImage scrImg = screen.capture();  // whole screen
BufferedImage scrImgFile = scrImg.getImage();

now you can use awt.ImageIO to write an image file wherever you want.

might help: https://answers.launchpad.net/sikuli/+question/179984

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to