sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29482
Re: [Question #258340]: How to use sikuli operations on ScreenShot Image File (UNLIKE Screen Region)
Question #258340 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/258340
Status: Open => Answered
RaiMan proposed the following answer:
new File(baseImg.getSub(m.x, m.y, 150, 150).asFile()).renameTo(new
File(<TargetPath>));
... for File.rename() the folder structure must exist, otherwise it
silently does nothing.
to assure the folder structure:
new File(<targetPath>).mkdirs()
new File(baseImg.getSub(m.x, m.y, 150, 150).asFile()).renameTo(new File(<TargetPath>, "someFile.png"));
now <targetPath> should only be the absolute path to the folder where
you want to store the images
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.