title: Python win32api get "stack" of windows
body: <p>I'm looking for a way to find out what order windows are open on my desktop in order to tell what parts of what windows are visible to the user. </p>
  
  <p>Say, in order, I open up a maximized chrome window, a maximized notepad++ window, and then a command prompt that only covers a small portion of the screen. Is there a way using the win32api (or possibly other library) that can tell me the stack of windows open so I can take the window dimensions and find out what is visible? I already know how to get which window has focus and the top-level window, but I'm looking for more info than that.</p>
  
  <p>In the example I mentioned above, I'd return that the full command prompt is visible but in the places it isn't, the notepad++ window is visible for example. No part of the chrome window would be visible.</p>