[jawsscripts] Re: problem in a say next line script.

Hi Jitendra:

I will post a message that occurred on the list earlier this year which
I hope will help you solve your problem.

You have already solved half of your problem which answers the question
What does Jaws need to do to speak the necessary information?

The next question you need to ask is where should I put the call to my
new function?

The message I am including below shows you a technique that you can use
to help answer this question.

This should help you determine which event is firing when you move from
field to field within your problem dialogue.




David Farough
Application Accessibility Coordinator/coordonateur de l'accessibilité 
Information Technology Services Directorate /
Direction des services d'information technologiques
Public Service Commission / Commission de la fonction publique
Email / Courriel:  David.Farough@xxxxxxxxxxxxx
Tel. / Tél:    (613) 992-2779 

>>> "Dennis Brown" <DennisTBrown@xxxxxxxxxxx> 10:16 am Wednesday, March
05, 2008 >>>
What type of control is it?  Is it a text field, a list, a menu, etc.
NextLine doesn't automatically speak the line, it just moves the
cursor.  If the line speaks automatically, it is done so via an event of
some type, such as ActiveItemChangedEvent, NewTextEvent,
ValueChangedEvent, ObjStateChangedEvent, FocusChangedEvent (which calls
SayFocusedWindow and SayFocusedObject), etc.
Whenever I start scripting a new app, I place a SayInteger(#) in the
different events within default.jss, and it gives me an idea on what
event is firing in any given area.
For example,
FocusChangedEventEx gets a SayInteger(0), and since it determines the
next two event firings;
ActiveItemChangedEventEx gets a SayInteger(1), and is fired with lists,
and list views;
FocusChangedEvent gets a SayInteger(2), and gets fired with anything
that isn't a list or list view;
ValueChangedEventEx gets a SayInteger(3), and fires when the MSAA value
changes, as well as in combo boxes and edit combos;
NewTextEventEx gets a SayInteger(4);  This one will drive you nuts
because it is what fires SayHighlightedText and SayNonHilightedText, and
fires constantly.
When you find an event that fires in the area that you are scripting,
such as navigating a list, and you need to customize the speech output,
then overwrite that event in your script set, ensuring that you call the
original at the end of your event, so the default gets called if your
condition isn't met.

Thanks,
Dennis Brown
  ----- Original Message ----- 
  From: Travis Roth 
  To: jawsscripts@xxxxxxxxxxxxx 
  Sent: Wednesday, March 05, 2008 9:22 AM
  Subject: [jawsscripts] Re: Issues when intercepting the SayNextLine
script


  Hi,

   I do not believe NextLine() causes speech to occur, the function's
help says to call SayLine() after calling NextLine() if you want the new
line read.

   

  That said, the easiest way to stop speech until you want something
spoken is to use SpeechOff() and SpeechOn().

   

   

  From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Sean Farrow
  Sent: Wednesday, March 05, 2008 7:44 AM
  To: jawsscripts@xxxxxxxxxxxxx 
  Subject: [jawsscripts] Issues when intercepting the SayNextLine
script

   

  Hi: 

  I am currently in the middle of scripting an application. When
rewriting the SayNextLine script form my needs I changed it to the
following:

  Script SayNextLine()

  NextLine ()

  SayString ("test")

  return;

  EndScript

  When pressing the down arrow, the text I am parsing is still spoken
in it's original state. Does the next line call by default speak the
text, if yes how can I go to the next line with out speaking it. if no
what other functions could be beeing called
sayhighlightedText/SayNonHighlightedText are not beeing called I'e
already tried that one. 

  Any one got any ideas?

  Sean.

>>> Jitendra <jeet.invincible@xxxxxxxxx> 01:05 am Wednesday, October
08, 2008 >>>
Thank you for replying, but in the mean while, I invented the Say 
calender function,
Void Function calendarRead ()
var
handle hCal
Let HCal = GetCurrentWindow ()
if hCal then
SayString ("the selected field is:")
     sayWindow(hCal,read_highlighted)
endIf
EndFunction


So calling this function  or performing  the script reads the current 
entry, and then jumps to the other one, but doesn't read it.


100 Years Merits a Celebration!  
http://www.psc-cfp.gc.ca/100/index-eng.htm 
100 ans, ça mérite une célébration!    
http://www.psc-cfp.gc.ca/100/index-fra.htm 

__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

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

Other related posts: