The GW-Scripting list is a discussion list for information regarding the development and use of Window-Eyes scripts. Any subscriber of the GW-Scripting list has the ability to post on-topic messages.

From:

 "Chip Orange" <lists3717@comcast.net>

Subject:

 RE: text.nextline

Date:

 Thu, Sep 12, 2013 7:50:49 pm
This is a multipart message in MIME format.

------=_NextPart_000_006A_01CEAFF1.61877710
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

Jonathin,



I think I had written a wiki article on the use of these methods and the
"text" object to retrieve text; perhaps Aaron would post it here or in their
KB as the wiki is gone and I didn't save copies of all the articles I had
written, and I can't find any of them on the KB.



I seem to recall it mentioned several documentation errors or omisions which
were really helpful to know. I'm just going from memory here, but I don't
think it's documented that you need to make your own copy of the text object
to work with for these methods to work properly. Also, by default, the
enclosing rectangle is that of the active window. It could be that these
things are documented, just very hard to find.

I believe I covered this article in class #15, as well as other methods for
getting text from the display (some of them either more reliable or easier
than using the text object).



This is why the wiki was so important (if there was no other reason, it gave
us a way to correct and update/ogment documentation deficiencies).



Hth,



Chip



Chip





From: Jonathan C. Cohn [mailto:jon.c.cohn@gmail.com]
Sent: Thursday, September 12, 2013 7:43 AM
To: gw-scripting@gwmicro.com
Subject: text.nextline



I understand that text.nextline(aScreenPoint) will return a set of clips and
that there is a bounding rectangle of some kind associated with the method.
I do have two questions.



1. Is the aScreenPointer then updated to the new line of text so
conseccutive calls would return new clips?



How is the bounding rectangle specified?



Thanks,





Jonathan Cohn










------=_NextPart_000_006A_01CEAFF1.61877710
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml"; xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.apple-style-span
{mso-style-name:apple-style-span;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
..MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple style='word-wrap: break-word;-webkit-nbsp-mode: space;-webkit-line-break: after-white-space'><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Jonathin,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I think I had written a wiki article on the use of these methods and the &#8220;text&#8221; object to retrieve text; perhaps Aaron would post it here or in their KB as the wiki is gone and I didn&#8217;t save copies of all the articles I had written, and I can&#8217;t find any of them on the KB.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I seem to recall it mentioned several documentation errors or omisions which were really helpful to know.&nbsp; I&#8217;m just going from memory here, but I don&#8217;t think it&#8217;s documented that you need to make your own copy of the text object to work with for these methods to work properly.&nbsp; Also, by default, the enclosing rectangle is that of the active window.&nbsp; It could be that these things are documented, just very hard to find.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I believe I covered this article in class #15, as well as other methods for getting text from the display (some of them either more reliable or easier than using the text object).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>This is why the wiki was so important (if there was no other reason, it gave us a way to correct and update/ogment documentation deficiencies).<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hth,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Chip<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Chip<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Jonathan C. Cohn [mailto:jon.c.cohn@gmail.com] <br><b>Sent:</b> Thursday, September 12, 2013 7:43 AM<br><b>To:</b> gw-scripting@gwmicro.com<br><b>Subject:</b> text.nextline <o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal>I understand that text.nextline(aScreenPoint) will return a set of clips and that there is a bounding rectangle of some kind associated with the method. I do have two questions.<o:p></o:p></p><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>1. Is the aScreenPointer then updated to the new line of text so conseccutive calls would return new clips?<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>How is the bounding rectangle specified?<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><div><p class=MsoNormal>Thanks,<o:p></o:p></p></div><div><p class=MsoNormal><o:p>&nbsp;</o:p></p><div><div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black'>Jonathan Cohn<o:p></o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p>&nbsp;</o:p></span></p></div><div><p class=MsoNormal><span style='font-size:13.5pt;font-family:"Helvetica","sans-serif";color:black'><o:p>&nbsp;</o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div><p class=MsoNormal><o:p>&nbsp;</o:p></p></div></div></body></html>
------=_NextPart_000_006A_01CEAFF1.61877710--