[jawsscripts] Confused with SpeechInUse function

  • From: "Kamil" <kamilimak@xxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 7 Apr 2009 06:25:48 -0400

Hi All,

I'm confused with the way SpeechInUse () behaves or rather misbehaves.
What I experience is that, it acts like the inverted version of IsSpeechOff 
() function.
I expect it to return FALSE, when the synthisizer is silent, regardless of 
being ON or OFF.
I tried the following piece of code, and it only gets out of the loop, if I 
press a key.
Could you verify this observation please.

Many thanks in advance,
Kamil

Script SayAndWait ()
    SayString ("I wish, I could be wrong sometimes.")
    While SpeechInUse () && Not IsKeyWaiting ()
        Pause ()
    EndWhile
    SayString ("Finished")
EndScript 

__________ 
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: