sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #35999
[Bug 1525426] Re: [1.1.0] Windows: WPF based programs: App.window() does not report dimensions and positions for the main window
ok, this makes sense.
Try the following loop:
app = App("your App")
for i in range(100):
win = app.window(i)
if not win: break
print win
The problem of the App feature: it cannot detect, wether a window is
visible or not. There are many multi-window apps, that have many windows
open all the time and only switch between visible and invisible.
If this is the case, you have to filter somehow the above list you can
get.
For the future: please start such things as questions. If it turns out
to be a bug, we can do that later at any time. It makes my life a bit
easier. thanks.
** Changed in: sikuli
Status: New => Invalid
** Converted to question:
https://answers.launchpad.net/sikuli/+question/278723
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1525426
Title:
[1.1.0] Windows: WPF based programs: App.window() does not report
dimensions and positions for the main window
Status in Sikuli:
Invalid
Bug description:
Sikuli Version: 1.1.0
OS: Windows 7 64bit Ultimate Edition
It appears any WPF based program I attempt to focus or open will
report a position of (200,200) with a dimension of (200,200). The
following is a sample of code to obtain region information from a
Visual Studio 2015 project template for WPF, window dimensions are
(350, 525):
=== WpfTest.py ===
a = App.focus("MainWindow")
print(a.window().x)
print(a.window().y)
print(a.window().w)
print(a.window().h)
print(a.window())
===Output===
[log] App.focus: [7592:MainWindow]
200
200
200
200
R[200,200 200x200]@S(0)[0,0 1920x1200] E:Y, T:3.0
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1525426/+subscriptions
References