Python Forum
win32 GetWindowRect for window dimensions
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
win32 GetWindowRect for window dimensions
#1
I am using win32gui.GetWindowRect for a window I have retrieved the handle for using win32.EnumWindows and matching the title of the window as I see on the screen.
I am also using Window Spy to see the same window information.
win32 gives me x of 51, y of 0, width of 1295 and height of 837
Windows Spy gives me x of 77, y of 0, width of 1942 and height 1256

At the moment I am believing Windows Spy as the setting in the running app has screen settings of 1920x1200 which math with the client are in Windows Spy.

My question is what is the correct way to get a windows dimensions?
Reply


Messages In This Thread
win32 GetWindowRect for window dimensions - by MrMajorThorburn - Apr-07-2019, 09:14 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to call and focus any popup window outside of the main window app? Valjean 6 2,096 Oct-02-2023, 04:11 PM
Last Post: deanhystad
  Pyspark Window: perform sum over a window with specific conditions Shena76 0 1,255 Jun-13-2022, 08:59 AM
Last Post: Shena76
  Python library for win32 console commands eldiener 3 3,617 Aug-24-2021, 10:28 PM
Last Post: bowlofred
  Win32\ping.exe windows pops up -very annoying... tester_V 9 3,396 Aug-12-2021, 06:54 AM
Last Post: tester_V
Exclamation binwalk Win32 compile hackstunt 2 4,011 Feb-24-2021, 05:14 PM
Last Post: nilamo
  pyarrow throws oserror winerror 193 1 is not a valid win32 application aupres 2 3,905 Oct-21-2020, 01:04 AM
Last Post: aupres
  win32 API: Launch Application to RDP session from background process python script rangeshgupta 0 2,232 May-28-2020, 09:41 PM
Last Post: rangeshgupta
  C:\Windows\System32\appwiz.cpl is not a valid Win32 application Marceepoo 8 5,346 Mar-15-2020, 04:46 AM
Last Post: buran
  Pymssql library failing when upgrading to Python 3.7 - win32 issue stixmagiggins 5 7,653 Jun-24-2019, 06:46 AM
Last Post: snippsat
  Trying to use win32 Sendkeys to log into database overnight statiCat 0 4,292 Apr-28-2018, 03:59 PM
Last Post: statiCat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020