title: Getting x , y Co-ordinates of the text present on the screen using python
body: <p>I am doing windows automation with python and trying to right click on an audio file and select the <strong>Open with</strong> menu item to play the audio file with <em>Windows media player</em>.</p>
  
  <p>For that I am trying to get the text coordinates, and prviding those text coordinates i am planning to click on it as follow.</p>
  
  <pre><code>import pywinauto
  import SendKeys
  
  # getting instance of previously opened window 
  app = pywinauto.application.Application().window_(title = "My Documents").Wait('visible', timeout=20, retry_interval=0.5)
  
  # focus the existing window
  app.SetFocus()
  
  # get the co-ordinates of "audio.mp3"
  app.RightClickInput(coords = (x,y))
  
  # get the co-ordinates of "Open with"
  app.ClickInput(coords = (x1,y1))
  
  # get the co-ordinates of "Windows Media Player"
  app.ClickInput(coords = (x2, y2))
  </code></pre>
  
  <p>So, how to get the particular text coordinates present on the screen ?</p>
  
  <p><strong>OR</strong></p>
  
  <p>Instead of getting co-ordinates and clicing on them can we do it solely by <em>pywinauto</em> ?</p>