title: How to take a screen capture of a hidden/partially hidden window with Python
body: <p>I'm trying to create a Python program that takes screen capture of a specific window that is hidden/partialy hidden by other windows. I've searched for code on the web but none of them seems to work with Windows 11 &amp; Python 3.8+. What is the simplest way of doing this?</p>
  <p>Like <a href="https://developer.mozilla.org/en-US/docs/Web/API/Screen_Capture_API/Using_Screen_Capture" rel="nofollow noreferrer">this</a> if possile</p>