[jawsscripts] Re: How to detect bottom of file

  • From: John Martyn <johnrobertmartyn@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 31 Mar 2014 10:40:09 -0600

Well, it is a little messy, but you can compare lines to see if they match
and terminate after it happens twice. A while loop will do nice in this
situation.
For example:
While trigger != 1
Let safety = safety+1
Let theLine = GetLine()
NextLine()
Delay(1,1)
If StringCompare(theLine,GetLine(),0) == 0 then
Let trigger = 1
;end of line
Endif
If safety == 200 then
Let trigger = 1
Endif
Endwhile

HTH
John Martyn
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of KL Ng
Sent: Monday, March 31, 2014 9:14 AM
To: jawsscripts@xxxxxxxxxxxxx
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: