← Back to team overview

sikuli-driver team mailing list archive

[Question #278723]: [1.1.0] Windows: WPF based programs: App.window() does not report dimensions and positions for the main window

 

New question #278723 on Sikuli:
https://answers.launchpad.net/sikuli/+question/278723

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

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.