← Back to team overview

sikuli-driver team mailing list archive

[Bug 1525426] [NEW] App object incorrect dimensions and positions for WPF based programs

 

Public bug reported:

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

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
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:
  App object incorrect dimensions and positions for WPF based programs

Status in Sikuli:
  New

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


Follow ups