sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #04926
Re: [Question #169505]: Get the active window
Question #169505 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/169505
Status: Answered => Open
sylvain caillet is still having a problem:
Ok, thank you RaiMan for your explanations.
During my script, i would like to restrict my searches to regions limited by the active window. For example, if I test a Lotus Notes application, first I have to login - so search limited to the login popup, then open mail tab - so search limited to the main window, ...
At each step, it would be great to get the region (ok, not the instance in Java sense) of this active window.
Now, to get the active window region, I use this code (get from you, I guess) :
for i in range(100):
appWindow = app.window(i)
if not appWindow: break
if appWindow.w < 200 or appWindow.h < 200: continue
where
app = App(command)
In the Notes case, this code returns me the splash window, not even the
popup.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.