← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #182167]: Observing Multiple Regions Simultaneously

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
everything you did is the way, how to gain performance with Sikuli.

But the plain observe(FOREVER) is indeed blocking: it waits until a
stopObserver() is called in the handler. So the script itself meanwhile
hangs.

So if you want to observe different regions in parallel, all observe calls except the last one (if needed) have to use the background feature:
region.observe(FOREVER, True)
or
region.observe(FOREVER, background=True)

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