← Back to team overview

sikuli-driver team mailing list archive

[Question #657348]: Invalid change of AutoWaitTimeout

 

New question #657348 on Sikuli:
https://answers.launchpad.net/sikuli/+question/657348

Hi,
I'm trying to set Region‘s autowaittimeout. Because of the time i find a img can be estimated, so i don't want wait the result too long for 3s.
But after  modified region's autowaittingout or exists(img,0.2),  the script will still spend more secons to  find the image.
It's my test script below:


import time
a = Region(0,0,1759,991)
a.WaitScanRate = 0.2
a.ObserveScanRate = 0.2
start = time.time()
a.AutoWaitTimeout =0.1
print a.getAutoWaitTimeout()

b = a.exists("1504517680223.png",0.5)

end = time.time()
print "exists: %f s" % (end - start)



it will spend 3s if can't find the img

I don't know where is wrong.
And another question is that in what case we can use exists(img,0)?


Thanks,
Wendell

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