How do we fetch specific text from MainFrame?

  • [copySelectedText] could you explain how to select certain text

Do we have some other methods which will extract the data from mainframe? If so, please mention.
Thanks in advance

Please help me on this