sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #36456
Re: [Question #221802]: capture(): saved file is not persistent (deleted when Java process stops)
Question #221802 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/221802
Chathura posted a new comment:
Here is the full working code:
import shutil
def screenGrab(reg = None):
# reg must be a Screen/Region/Match object
if reg:
return capture(reg)
else:
return capture(SCREEN) #no region specified, use full screen
img=screenGrab()
shutil.move(img, "safe_location.png")
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.