← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #247856]: Speed up exists() in a region

 

Question #247856 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/247856

    Status: Open => Answered

RaiMan proposed the following answer:
If you think, this is the critical section, then you should check the
timing:

correct = Region(x-10,y-10,20,20)
ups = 0
while ups <= 8:
        start = time.time()
        if correct.exists(image, 0): break
        print "exists", time.time() - start
        start = time.time()
        type(Key.UP)
        print "type", time.time() - start
        ups += 1

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.