[jawsscripts] Re: How to capture text between two points in an editor?

  • From: "Paul Magill" <magills@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 30 Jul 2009 18:07:09 +1000

Hi Brian,

You have probably tried these, but in case not...
GetTextInWindow ()
GetWindowText ()
or  GetChunk () with the active cursor on the text.

Regards,
Paul from Aust

----- Original Message ----- 
From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx>


This probably sounds like a stupid question, but here it goes...
I've got the x and y coordinance of two specific points within an editor, 
the x and y for the beginning of the text, and the x and y for the end of 
the text.
Capturing the text between the points within a rectangle doesn't work, 
because if the selected text is all of one line, and part of another line, 
the vertical position doesn't encompass all of the selected text.

Plus this selected text isn't recognized by the GetSelectedText function, so 
in case you're wondering, this is why I'm trying to write a workaround.

Hopefully I'm missing a function specifically designed for this purpose, but 
I haven't had much luck locating it. Any ideas?

Thanks,
Bryan

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: