← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #276594]: Couldn't able to close the popup window through script

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
with this inline approach, you cannot handle the popup, because the
script waits for the completion of the popup function, and hence only
continues, if the popup has vanished.

you have to issue the popup in a parallel thread like this (simplest
solution):

import thread
thread.start_new_thread(popup,("test",))
wait(2)
type(Key.ESC)

for more information about Python threads/subprocesses consult tutorials
and docs in the net.

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