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

  • From: Chad Foster <chad.foster@xxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 30 Jul 2009 09:25:02 -0400

Too bad - that would make things much cleaner.

On 7/30/09, Paul Magill <magills@xxxxxxxxxxx> wrote:
> 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
>
>


-- 
Chad Foster
Access Technology Solutions
Leveling The Playing Field Through Technology
http://www.GO-ATS.net
__________ 
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: