sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #30894
Re: [Question #232732]: How to take a screenshot (fullscreen) in SIKULI IDE ?
Question #232732 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232732
RaiMan posted a new comment:
not consistent:
taking picture yeah it's in C:\sikuli\imgname.png
but here
shutil.move(img, r"G:\sikuli\imgname.png") # it is G:
and here
if region2.inside().exists(Pattern("G:\sikuli\imgname.png")) # it is again G: and notC:
this would be correct and robust
import os
import shutil
dir = r"C:\sikuli"
img = capture(REGION) // region 1
imagename = os.path.join(dir, "imgname.png")
shutil.move(img, imagename)
if region2.exists(imagename):
click (picture)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.