How to know the size of the window in Windows 7?
  • one
    It depends on what environment you work and why you need it. - Vitaly Zaslavsky
  • one
    I want to confirm the assumption that the browser window is larger than the width of the screen. A related question here: [hashcode] [1] [1] hashcode.ru/questions/73690/… - komka
  • one
    If the browser window is js - Vitaly Zaslavsky
  • 3
    as an option, you can just try on a ruler - Gorets
  • one
    @vital_viza, the question arose just because I measured the width through js and it turned out to be not what I expected. The question on the link is just about that. - komka

1 answer 1

If the language is not fundamental, then:

  1. You can get the screen size, for example, through the Screen.PrimaryScreen.Bounds properties (C #, there are analogues in C ++, VB, F #);
  2. or a similar method Screen.GetBounds() (C #, is similar in C ++, etc.).

  3. To get the size of the browser window, you can take the property WebBrowser.Bounds

For powershell try googling. For example, here .

PS Hashcode, why did you lose the edit?