← Back to team overview

sikuli-driver team mailing list archive

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:
--- startup time regression
First observation: the penalty with the same setup seems to be reliably about 4 seconds again compared to 0420, i.e. as reported from 0507. The extreme slowdown observed with 0512 seems to be gone.

If I compare using the old way with App.focus(title), and just switch
the sikulixapi.jar, it's clear that it is this App.focus call itself
that adds this 4 second delay. It is essentially instantaneous  with
0420 and takes 4 seconds with 0519.

If I switch to the new way as well, and start the app from within Sikuli, it seems to take 4 seconds to create the App object *and* 4 seconds to call app.open(). This leads to around an 8 second difference. I think this is because Jython also takes about this long to start, and by starting the app outside Sikuli this time runs concurrently to the app starting.  Starting the app within Sikuli loses this parallelism unfortunately. So 4 of the seconds are possibly lost due to the same cause as above and 4 of them due to lost parallelism.
One workaround for the second of these problems would be to support App.focus(pid), then I could keep the parallelism while not needing to hardcode window titles in my scripts.

--- startup time regression
Thanks, I'll get hold of the latest version again then.

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