[jawsscripts] Re: Using FindNext in a Jaws Script

Replace the s_top with s_next.  It is porly documented but it works.

dmaynard35@xxxxxxxxxxx



At Tuesday 11/27/2007, you wrote:
Good evening scripters:

I have a flawed script that I need your help to fi'x. The program is a 3270 session. I need to be able to check the contents of a field labled "LOS"(Level of Service) with a keystroke. After some three years of using the script, someone finally brought to my attention that it is not working for the Los Angeles Airport. When you see my script below, the reason will be obvious. What I need to be able to do is check for the presence of Los Angeles &nd if it is there, to move on to the next o33urance of the search term & perform the same test then perform my normal test that follows. The problem is that I cannot find a FindNext function in the JAWS scripting language & am not sure how to build one.

The script segment in question follows:

*******
        FindString (hWnd, "los ", s_top, s_unrestricted)
let sFieldName = GetWord ()
        NextWord ()
let iCount =0
If GetWord () == "mod" then
let sValue = "None Listed"
        Else
; Here's where I need to test for "Angeles" & have JAWS look for the next occurance if it's ; there
let sValue = GetWord ()
        EndIf
Say (sFieldName, ot_message, false)
say (sValue, ot_message, false)
*****




David W Bundy
Assistive Technology Specialist
SC Commission for the Blind
(803) 898-7094
Work E-Mail: dbundy@xxxxxxxxxxx
Sent from my Pac Mate
sharktrainer13@xxxxxxxxx
David W Bundy

__________
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.503 / Virus Database: 269.16.8/1153 - Release Date: 11/26/2007 9:08 PM

__________ 
View the list's information and change your settings at http://www.freelists.org/list/jawsscripts

Other related posts: