[jawsscripts] Re: Jaws reloading after script has run too long

  • From: "Jim Snowbarger" <snowman@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 22 Apr 2015 20:36:01 -0500

Maybe a function that is called from documentLoadedEvent, with a global
variable to tell that function that it should do the rest of your job.
Set the global, send the enterKey, and then exit. When DocumentLoadedEvent
runs, it calls yoru function, which notices the global is set, does the rest
of the work, and then clears the global.
So, you don't need a loop at all.
that fun
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of John Aaron
Sent: Wednesday, April 22, 2015 7:45 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Jaws reloading after script has run too long

Acording to the documentation you can't use a pause in a while loop because
that will stop the script totally.


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Travis Roth
Sent: Wednesday, April 22, 2015 8:05 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Jaws reloading after script has run too long

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


__________�

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

Other related posts: