[jawsscripts] Jaws reloading after script has run too long

  • From: "John Aaron" <massageinlargo@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 22 Apr 2015 19:40:35 -0400

I am doing scripting in jaws 16, and I have written a script with a While
loop. The problem is the script could run for as much as 2 minutes without
interaction before completing, but after about 30 seconds jaws reloads, and
the script stops.
Here is a slight example of what I am doing:



Var

String oldPage,

String newPage,

Int iCounter



MoveToHeading (S_TOP, 1)

oldPage = GetLine ()

newPage = oldPage

EnterKey ()



While lastPage == newPage

;wait for new page to finish loading

Delay (20, true)

MoveToHeading (S_TOP, 1)

newPage = GetLine ()



;put in a safety net in case new page never loads

If iCounter >= 60 then

newPage = "Error"

EndIf



; increment once for every 2 seconds

iCounter = iCounter + 1



EndWhile



I think what the problem is that jaws thinks it is caught in an endless loop
and reloads after about 30 seconds. Is there anyway of overriding this?



Thanks in advance.



John



__________�

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

Other related posts: