← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #668708]: Saving captured image to hard drive using python

 

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

    Status: Open => Needs information

masuo requested more information:
You say "the First_image_used.png is not being changed at all." 
I can't understand the situation well.
Is First_image_used.png created once?

After shutil.move(), "search" is False.
So shutil.move() is called only once.
That is First_image_used.png is created once but not changed.

If First_image_used.png is never created once, you have to confirm usage
of python is correct or not by running easy code.

[for example:]
img = capture(0, 0, 100, 100)
print img

a = r"C:\tmp"
b = "img.png"
print os.path.join(a,b)

shutil.move(img, os.path.join(a,b))

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.