sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40768
[Question #404211]: could not find the location where Screen.capture(region) stores the image
New question #404211 on Sikuli:
https://answers.launchpad.net/sikuli/+question/404211
Im trying to find the location where the temporary image captured by Screen.capture(image) is stored in my machine. Please find the code im using.
from org.sikuli.script import Region, Screen
import shutil
from org.sikuli.script import ScreenImage
reg = Region(0,0,1600,900)
objvalue = Screen(0)
pathvalue = objvalue.capture(reg)
#shutil.move(pathvalue,"C:\Users\KESUBRAMANIAN\Desktop\test.png")
print(pathvalue)
On running the above code, the value printed is 'org.sikuli.script.ScreenImage@969fb8'. I could not find this in Temp folder.
Also, i could not move the image using shutil.move function and it throws an error stating
TypeError: coercing to Unicode: need string, org.sikuli.script.ScreenImage type found
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.