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