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

  • From: Daniel Dalton <daniel.dalton47@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Thu, 11 Oct 2007 21:50:16 +1000

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

Other related posts: