Question #173996 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/173996
RaiMan posted a new comment:
This works, if Chrome is not started yet:
ac = App(r"C:\Users\Raimund
Hocke\AppData\Local\Google\Chrome\Application\chrome.exe")
ac.focus()
while not ac.window():
wait(1)
win = None
for i in range(100):
w = ac.window(i)
if not w:
break
if w.h<300:
continue
win = w
break
win.highlight(2)
Chrome places more than 10 hidden windows on the desktop at startup. the above
code filters these windows (Sikuli currently cannot distinguish between hidden
and visible windows) by some criteria (in this case the window height). The
first one not filtered seems to be the app window.
The region of this window is now in win.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.
_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help : https://help.launchpad.net/ListHelp