title: Get window title via mouse cursor in Powershell/wasp?
body: <p>I have built a powershell  script ( <em>using wasp</em>) which sets <em>any</em> window to "<em>always on top</em>" mode .</p>
  
  <p>I run the script via : </p>
  
  <p><code>Get-WindowByTitle *emul* | Set-TopMost</code></p>
  
  <ul>
  <li>Why do I need it ?*</li>
  </ul>
  
  <p>When I program in <code>Eclipse/Androidstudio</code> - I want the emulator to be always in front. so the script is looking for all windows which has title like <code>emul</code> (<em>which is part of the actual title which is <code>"emulator.exe"</code></em>) and sets it to   always on top.</p>
  
  <p>Okay. </p>
  
  <p>But now I want to do it for every window without changing the script.</p>
  
  <p>How will I chose the window ? by mouse cursor (hover only). (<em>When I put the mouse over calc.exe , and press some sequence of keys - which will activate the PS script - it will search which window has the cursor at</em>)</p>
  
  <p><strong>Question</strong></p>
  
  <p>How can I select the <code>title</code> of a window which has the mouse cursor on it ?  (the window <em>doesn't</em> have to be active)</p>
  
  <p>Example : </p>
  
  <p>looking at  : </p>
  
  <p><img src="https://i.stack.imgur.com/VgnCg.png" alt="enter image description here"></p>
  
  <p>I want to get <code>MyChromeBrowserTitle</code> although it is in the background  , ( and notepad is in front). it should return chrome's title because the cursor is at  the chrome  window.</p>