[jawsscripts] Re: Finding Word along a line, not usingFindString in whole window

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 15 Oct 2007 01:04:02 +1000

thanks for this david also. but, problem is, that I still have to be able to
move to the actual location of this thing with Cursor, requiring a
findString? or is there some other way of gleaning the coordinate location
of the Word if StringContains proves successful? I didn't think there was
any other way other than FindString, since I need to be able to calculate
positions of other things to read, based on coordinate of the string
OnScreen.
But, in answering this, you have introduced to my head two things I am
shamefully ignorant and tentitive about utilizing. namely the while loop.
 plus the IsKeyWaiting deal as well, I never thought of that one before. man
there's a whole bunch to learn in this scripting deal is not there? It'll be
years before I'll feel like I can say my head's really around all this
stuff.

----- Original Message ----- 
From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Friday, October 12, 2007 1:31 AM
Subject: [jawsscripts] Re: Finding Word along a line, not usingFindString in
whole window


> how about
> if Stringcontains (GetLine(), "Search string") then
>    do something
> else
> while loop with nextLine () and similar if as above.  Making sure to
> exit the loop when found You might also include the isKeyWaiting()
> function in the while loop.
>
> The lloop might look something like
> while (not Stringcontains (GetLine(), "Search string") && not
> IsKeyWaiting())
> NextLine ()
> EndWhile
>
> David Farough
> Application Accessibility Coordinator/coordonateur de l'accessibilité
> Information Technology Services Directorate /
> Direction des services d'information technologiques
> Public Service Commission / Commission de la fonction publique
> Email / Courriel:  David.Farough@xxxxxxxxxxxxx
> Tel. / Tél:    (613) 992-2779
>
> >>> "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx> 07:21 am Thursday, October
> 11, 2007 >>>
> Guys, is there a way2, there must be surely, to do a FindString in a
> given
> area, in this case, along a line, rather than have to use the large and
>
> clunky, FindString s_top s_Restricted whole deal, where it starts from
> top
> of whole window and looks all over?
> I wish to just do it more specificly in a certain area/along a given
> line
> etc, in order to be more elegant and not risk finding the wrong
> occurrance
> of the string. There must be some function to do it, but I just can't
> think
> of it right now. any takers?
>
> thanks.
>
> geoff c.
>
>
>
> __________
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
> __________
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
__________ 
View the list's information and change your settings at 
http://www.freelists.org/list/jawsscripts

Other related posts:

  • » [jawsscripts] Re: Finding Word along a line, not usingFindString in whole window