title: Take a screenshot and use OCR on it
body: <p>I know the OCR question with Python has already been discussed many times.
  However I didn't find anything that seems to help me excpt this question
  <a href="https://stackoverflow.com/questions/1762565/python-tesseract-ocr-question">Python Tesseract OCR question</a>.
  But it didn't solve my problem.</p>
  
  <p>I need to make a little script to capture the text inside an opened window (of a text editor).</p>
  
  <p>So it should:</p>
  
  <ol>
  <li>Take a screenshot</li>
  <li>Find the position of the text editor window and slice the screenshot (dunno if this passage is needed)</li>
  <li>Convert it to grayscale and pass it to tesseract</li>
  </ol>
  
  <p>I'm kinda newbie to Python and I dunno if this is feasible.</p>
  
  <p>However thanks in advance for any hint.</p>
  
  <p>Giorgio</p>