[jawsscripts] Re: How to capture text between two points in an editor?
- From: "Homme, James" <james.homme@xxxxxxxxxxxx>
- To: "jawsscripts@xxxxxxxxxxxxx" <jawsscripts@xxxxxxxxxxxxx>
- Date: Wed, 29 Jul 2009 14:54:02 -0400
Brian,
In JAWS script, try the GetTextBetween function.
Jim
----------
Jim Homme
Usability Services
412-544-1810
james.homme@xxxxxxxxxxxx
"You can do anything you want to if you put your mind to it" -- Jim Homme Sr.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bryan Garaventa
Sent: Wednesday, July 29, 2009 2:30 PM
To: jawsscripts@xxxxxxxxxxxxx
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
This e-mail and any attachments to it are confidential and are intended solely
for use of the individual or entity to whom they are addressed. If you have
received this e-mail in error, please notify the sender immediately and then
delete it. If you are not the intended recipient, you must not keep, use,
disclose, copy or distribute this e-mail without the author's prior permission.
The views expressed in this e-mail message do not necessarily represent the
views of Highmark Inc., its subsidiaries, or affiliates.
__________
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: