← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #233894]: how to save a object to a file

 

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

RaiMan proposed the following answer:
this should do it:

mport shutil # put it at the beginning of the script
import os # put it at the beginning of the script

img = "Vefifjf.png"
p=find(img)
code = capture(p.right(50)) # creates a temp image file of the region
shutil.move(img, "E:\\WorkPlc\\a.png") # moves it to the permanent storage

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