← 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

RaiMan posted a new comment:
ok, some intermediate results (my machine: I7/3.4 16GB Win8.1/64)

I used your setup with Jython 2.5.4 running a test.py from command line
with jython.bat

I used the same test with Version 1.0.1 and 1.1.0

import org.sikuli.basics.SikulixForJython 
from sikuli import *

this is the SikuliX specific startup:
1.0.1: 1 sec
1.1.0: 1.5 sec
the additional time is due to the fact, that with version 1.1.0+ everything that is possible is done at startup 

the App class features in version 1.0.1 run with "no" delay, but in 1.1.0 an open() and a focus() each costs about 1 second ( I will try to reduce this as much as possible).
BTW: after app.open() no additional app.focus() is needed.

The obvious problem:
in both versions an app.focus() with an App object setup with an app path, will bring the application to front, but will not activate the window to accept input.
This currently is only the case if you use App.focus("part of window title")

I will check an alternative solution and come back.

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