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

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

hmmm, interesting approach daniel! thanks for this. again, my while loop
understanding/usage is quite poor at this point, but I can see this could
work as well, then your cursor would also be positioned on the word when the
correct match was found, which might well do better than the FindString from
the top of the wohle window. sepcially if you know or suspect there may be
other occurrances of the text somewhere in the window that it might stop at
instead! and then et everything wrong.
So, thanks for the Idea. I also want to try another script'ers suggestion of
S_Next in the FindString command, but was unclear whether that would just
stop at the one movement of this, or whether in FindString, it would keep
moving to s_next, until it found the word, similar to how FindString s_Top
does for the whole window.

So, gotta try both these tomorrow and see which one works bestest.
again thanks for the suggestions everyone!

To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, October 11, 2007 9:50 PM
Subject: [jawsscripts] Re: Finding Word along a line, not using FindString
in whole window


> On 11/10/2007 9:21 PM, Geoff Chapman wrote:
> > 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?
>
> Try using a while loop. Do you need me to give you some code to play
> with? Just haven't got time tonight but tomorrow I will.
>
> Anyway find the line then say while get word doesn't equal what ever the
> word is next word.
> Make sure you use a counter so you don't break anything.
>
> Then of course write an if for what should happen if the word is found
> so for example
> if(getword () =="word") then
> what to do when the word is found.
> And where word is the word your looking for.
> HTH
>
> -- 
> Daniel Dalton
>
> http://members.iinet.net.au/~ddalton/
> daniel.dalton47@xxxxxxxxx
> __________
> 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: