[jawsscripts] Re: How to capture text between two points in an editor?
- From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Wed, 29 Jul 2009 20:38:16 +0100
Have you tried the GetTextInRect function, adding offsets if necessary to
slightly increase the size of your bounding rectangle?
Martin
----- Original Message -----
From: "Bryan Garaventa" <bgaraventa11@xxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Wednesday, July 29, 2009 7:29 PM
Subject: [jawsscripts] How to capture text between two points in an editor?
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
http://www.freelists.org/list/jawsscripts
--------------------------------------------------------------------------------
No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.392 / Virus Database: 270.13.35/2270 - Release Date: 07/29/09
06:12:00
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
Other related posts: