title: Detect which Taskbar button was clicked (identify target window)
body: <p>I am trying to figure out how to detect which Taskbar button was clicked. Specifically, I want to write a script that makes it possible to maximize a window by double-clicking its Taskbar button. That requires knowing which Taskbar button was clicked, which I am having a difficult time finding any leads on.</p>
  
  <p>Does anyone know how this can be accomplished?</p>