sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28358
Re: [Question #194144]: How to make exists(img, 0.01) return immediately even if it fails --- solution: Settings.WaitScanRate
Question #194144 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/194144
RaiMan posted a new comment:
already tried version 1.1.0?
should work there.
start here:
http://sikulix.com
this example:
img = Pattern("img.png").exact()
m = get(Region.NW).find(img)
m.exists(img, 0) # in the region where the image was found
m1 = m.right(10).right(m.w)
m1.exists(img, 0) # in a region to the right, where it should not be
gives the following log: (watch the search times at the end of the lines in [ ] )
[debug] Image: from cache: file:/Volumes/HD6/rhocke-plus/SikuliX-2014/StuffContainer/testScripts/testCapture.sikuli/img.png
[debug] Region: find: waiting 3,0 secs for P(img.png) S: 0.99 to appear in R[0,0 640x400]@S(0)
[debug] Region: checkLastSeen: not there
[debug] Region: find: P(img.png) S: 0.99 has appeared
at M[98,60 23x23]@S(S(0)[0,0 1920x1200]) S:1,00 C:109,71 [96/96 msec]
[debug] Region: exists: waiting 0,0 secs for P(img.png) S: 0.99 to appear in M[98,60 23x23]@S(0)
[debug] Region: checkLastSeen: still there
[debug] Region: exists: P(img.png) S: 0.99 has appeared
at M[98,60 23x23]@S(S(0)[0,0 1920x1200]) S:1,00 C:109,71 [3/3 msec]
[debug] Region: exists: waiting 0,0 secs for P(img.png) S: 0.99 to appear in R[131,60 23x23]@S(0)
[debug] Region: exists: P(img.png) S: 0.99 has not appeared [4 msec]
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.