Hi again Geoff,If you call FindString with the s_next parameter, it will start the search from wherever the Jaws cursor is, and stop at the next occurrence of your string. If you call the function again, it will go on to find the one after that, and so on. With each call, FindString returns an integer to indicate whether the call has been successful or not. This means you can put the call to FindString in an if statement, and execute different code depending on whether the string is found or not.
hth Martin----- Original Message ----- From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx> Sent: Sunday, October 14, 2007 4:15 PMSubject: [jawsscripts] Re: Finding Word along a line, not using FindString in whole window
hi david. right! thanks for this man! so, would it keep executing the s_nextmovement would it, to the bottom of the window, until the string was found? or not? would it keep wrapping lines too in order to do this? of course I guess It would have to, but that this would just enable the search to start from a given point in the window. is that the deal? Thanks.----- Original Message ----- From: "David Maynard" <dmaynard35@xxxxxxxxxxx>To: <jawsscripts@xxxxxxxxxxxxx> Sent: Thursday, October 11, 2007 9:40 PM Subject: [jawsscripts] Re: Finding Word along a line, not using FindString in whole windowHi Jeff; Assuming you are at the beginning of the line try something like this: FindString (GetCurrentWindow (), "word", s_next, s_restricted) S_next and s_prior have been documented only once or twice since they were put in in version 3 or 4. hth David Maynard Franklin NC dmaynard35@xxxxxxxxxxx At Thursday 10/11/2007, you 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? > >thanks. > >geoff c. > > > >__________ >View the list's information and change your settings at >http://www.freelists.org/list/jawsscripts > > > >-- >No virus found in this incoming message. >Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: >269.14.7/1062 - Release Date: 10/10/2007 5:11 PM __________ 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