sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32555
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
Status: Answered => Open
Geoff Bache is still having a problem:
I did some more experimenting. I downloaded the latest nightjob and used your script above and more or less replicated the results I got with my own app last week.
There is a fairly constant 1.2 second penalty for using the latest version instead of 0420 when creating or focussing on a new app.
The later app.focus always works with 0420 and usually, though not always, doesn't with 0524: I invariably have to close the latter myself by hand. Here's my logs, same script as posted above. My machine details are also posted above, but they seem to be the same as yours. I'm using Java 8 (jre1.8.0_45) if that's relevant.
The original version from April:
D:\tmp>SET CLASSPATH=C:/Users/e601429/sikulix0420/sikulixapi.jar
D:\tmp>C:\jython2.5.3\jython.bat -J-Xms64M -J-Xmx512M -Dfile.encoding=UTF-8 testsik.py
startup: 1.54699993134
App(): 0.00200009346008
[log] CLICK on L(960,540)@S(0)[0,0 1920x1080]
[log] App.focus "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"(0) #0
App.focus: 0.0160000324249
[log] CLICK on L(960,540)@S(0)[0,0 1920x1080]
[log] App.focus "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"(524) #0
App.focus: 0.000999927520752
[log] App.focus Google Chrome(0) #0
[log] ( Alt ) TYPE "#F4."
The newest nightjob:
D:\tmp>SET CLASSPATH=C:/Users/e601429/sikulix0524/sikulixapi.jar
D:\tmp>C:\jython2.5.3\jython.bat -J-Xms64M -J-Xmx512M -Dfile.encoding=UTF-8 testsik.py
startup: 1.19600009918
App(): 1.17499995232
[log] CLICK on L(960,540)@S(0)[0,0 1920x1080]
[log] App.focus: [6616:chrome.exe]
App.focus: 0.120000123978
[log] CLICK on L(960,540)@S(0)[0,0 1920x1080]
[log] App.focus: [6616:chrome.exe]
App.focus: 0.105000019073
[log] App.focus: [6616:chrome.exe]
[log] ( Alt ) TYPE "#F4."
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.