sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #15731
Re: [Question #220146]: Take a screenshot of a region
Question #220146 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/220146
Status: Open => Answered
RaiMan proposed the following answer:
comment #2:
f(x != reg.print)
stringVar = capture(reg)
else
image.click()
comment #2 and #3:
if you want to save the shots as logging information (aka permanently), then you need to move the images, since capture() stores the image in a temp folder and they are deleted at script termination.
- the principle
import shutil
import os
shotLog = my_dir + AdditonalPathing
shutil.move(capture(reg), os.path.join(shotLog, "you-name-it.png"))
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.