sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #11043
Re: [Question #118707]: Save captures with custom file name?
Question #118707 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/118707
RaiMan proposed the following answer:
@ Stefanie
If you ask questions by commenting a question, you should subscribe to the question, to get noticed about possible answers (I did it for you this time ;-)
In the IDE you can name images after having them captured using the
Preview pane (click on image thumbnail).
In a script with dynamic capturing, you might do it this way:
targetdir ="some existing directory"
img = capture() # temp file name
shutil.copy(img, os.path.join(targetdir, "newname.png")
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.