What I am looking is capture text on a screen that is NOT part of the
current application. Simple scenario would be. Click on F-12 and a
portion(starty,startx,endy,endx) of the screen (that has always the text
"ACCOUNTING APPLICATION" on the header) would be captured.
Check Aqua deskperience - a capture text and search from desktop app( http://www.deskperience.com ). I used it a lot for capturing text not
available for copy/paste. They might have a library for doing this.