← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #183900]: How can I handle randomly popped up window/dialog?

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
You can use observe(FOREVER, background=True), which implements a
parallel subprocess, that waits for your popup and handles it.

A challenge is, that currently there is no reliable synchronization of
the mouse usage (the main script is not automatically paused) between
your main script and the observer process (it is only assured, that all
(main and sub) mouse actions are serialized). So normally with only one
"close the popup" action in the sub, this should work.

One user has set up a very sophisticated solution for handling different popup's in parallel: https://answers.launchpad.net/sikuli/+question/183655
Despite the fact, that he has a general problem, it might give some insights.

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