sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04715
Re: [Question #168487]: Handling Unexpected Pop-up
Question #168487 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/168487
Status: Open => Answered
RaiMan proposed the following answer:
--- "poor man's" solution:
in your workflow, regularly check for the existence popup (create a def for that)
--- general solution
You have to either use observe(FOREVER, background=True) or create your own subprocess, that observes the screen or a region for the popup to appear. In both cases multiple observes can be set up in parallel.
If mouse or keyboard is needed, you have to coordinate this with your
main workflow.
Be aware, that this consumes system resources - so it has to be
optimized: small regions, small images, as little finds as possible, low
scan rate (one per some seconds), ...
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.