sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #46324
Re: [Question #665630]: SikulixIDE 1.1.2 - Take a screenshot in the script and save it permanently
Question #665630 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/665630
Status: Open => Answered
masuo proposed the following answer:
Try this.
import shutil
r = Region(0,0,200,200)
screen = Screen()
tmpfile = screen.capture(r).getFile()
shutil.move(tmpfile, "C:\\Users\\masuo\\Desktop\\image.png")
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.