It hink you are correct, JAWS new hanging detection is probably being
triggered.
What if you inserted a pause() call after the delay to give JAWS's and other
apps' processes a chance to cycle as well? Perhaps this would convince JAWS
it is not hung.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of John Aaron
Sent: Wednesday, April 22, 2015 6:41 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Jaws reloading after script has run too long
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
__________�
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts