← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #207775]: Multiple Screenshot Export

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
import shutil
import os
num = 0 # to create some file name
dir = "some-path-where-you-want-to-have-the-images"
image = capture(some_region) # which might be SCREEN
# image now is an image file in temp
shutil.move(image, os.path.join(dir, "image%d.png"%(num)))
this moves the current image as "image0.png" to your dir
num += 1

only an example to show the principle -you might have other ideas how to
form your filenames

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