[jawsscripts] Re: How to detect bottom of file

  • From: "Jim Snowbarger" <Snowman@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 31 Mar 2014 20:32:06 -0500

No,  what I do, is write my own BottomEdgeEvent, in my own script file.
I then declar a global int which is set to 0 before I start the loop.
My BottomEdgeEvent function sets it to 1.
My loop terminates when that global int becomes 1.
However, as you know, lops are dangerous things if not coded correctly.  If 
they never terminate, you'll be forced to reset your computer.
Since the jaws script engine seems to be single threaded, and will not run 
an event as long as a script is running, that bottom edge event will 
probably not run while your loop is running, unless you include a pause() 
statement somewhere in the body of the loop.
That will slow it down, but it will allow the bottom edge event to run when 
it needs to.
Just to be sure, put a safety counter inside your loop, to terminate it if 
things get out of hand.


----- Original Message ----- 
From: "KL Ng" <ngkingling@xxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, March 31, 2014 10:13 AM
Subject: [jawsscripts] Re: How to detect bottom of file


Dear Jim,
Thank you for your swift response.
I want to find a function which helps to evaluate whether the last line of a
file has been reached or not. If the result is true, the while loop in my
script will be terminated.
Howver, your suggested BottomEdgeEvent is a void function. Can you suggest
another function?
Thanks!
KL



----- Original Message ----- 
From: "Jim Snowbarger" <Snowman@xxxxxxxxxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, March 31, 2014 9:28 AM
Subject: [jawsscripts] Re: How to detect bottom of file


> BottomEdgeEvent();
> Make a copy for yourself, like the one in default.jss
>
>
> ----- Original Message ----- 
> From: "KL Ng" <ngkingling@xxxxxxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Sunday, March 30, 2014 4:58 AM
> Subject: [jawsscripts] How to detect bottom of file
>
>
> Dear All,
> Can anyone tell me what JAWS function should be used to detect bottom of
> file.
> When you stand on the last line of a editor and press down arrow, JAWS
> will
> beep you.
> i would like to know what function should be used to get this information.
> Thanks!
> KL
> __________�
>
> 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: