sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32298
Re: [Question #266528]: app.focus() not working after window title change (Windows 8.1)?
Question #266528 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/266528
Geoff Bache posted a new comment:
Case sensitivity was not the problem.
What comes up initially in the application is a main window with a login
screen in front of it. I had previously used the title of the login
screen, which worked in 0420, as the main window has a non-ASCII "TM"
superscript in the middle. By using your "tasklist" command above I
found what that thinks the title is ("T" for "TM") and now I can focus
on it initially. But app.focus() after the window title change still
doesn't work (and doesn't log anything either).
I can try to rewrite to hand full control of the app's process to the
Sikuli script (which is what the above implies), and see if that would
work better. What I'm missing is a way to wait for the app to terminate,
equivalent to process.wait() in Python's subprocess module, which is
what I use right now. To complete my test I need to find various files
written by the app, and for it to work reliably I need to know that the
app is terminated. I guess I can check getPID() in a loop, but it
doesn't feel very satisfactory...
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.