sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #05364
Re: [Question #171361]: Save screenshots of application
Question #171361 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/171361
Status: Open => Answered
RaiMan proposed the following answer:
It depends on which level you plan to use it:
-- Sikuli-IDE (Jython level)
import shutil
reg = Region(the-screen-area-you-want-to-capture)
img = capture(reg) # img is an image file .png in temp folder now
shutil.move(img, path-to-your-image-directory/image-name.png) # the target directory must exist
-- If you plan to use the Java API level:
https://answers.launchpad.net/sikuli/+question/151213
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.