title: c++ win32 text selection detection and fetching and modifying in another application
body: <p>I've seen an application used to help the blind, it's called JAWS (it acts as a screen reader) it detects string and reads it in a lot of applications like MS Office applications, notepad, internet explorer.....etc. Is it possible to detect text selection in another application ?? how?i think accessibility is used but i don't know how to to it! i can replace selection detection with hotekey press.
  _ i tried to find a solution as the following</p>
  
  <ol>
  <li>get the top and activated window or from mouse location.</li>
  <li>get its child from mouse location.</li>
  <li>get the selected text or set it.</li>
  </ol>
  
  <p>In ms word i used spy++ to detect the control that contains the text i get "Microsoft Word Document"
  <img src="https://i.stack.imgur.com/AdqMg.jpg" alt="enter image description here"></p>