title: Python pyautogui window handle
body: <p>Using pyautogui is there a way to get a handle to a window so that I can ensure that a click is performed on that window only? In other words, if my window isn't in focus, then the click does not occur. Additionally, if my window isn't in focus then I bring it into focus and then perform the actions.</p>
  
  <p>The way to identify a window could be an ID, window title etc similar to this <a href="https://autohotkey.com/docs/commands/WinGet.htm" rel="noreferrer">https://autohotkey.com/docs/commands/WinGet.htm</a></p>
  
  <p>Is there any other Python module that supports this kind of functionality?</p>