[jawsscripts] Re: methods of Setting a pause or delay in script for your synth to finish first. was Re: Re: Speaking a text with a specified voice?

  • From: "Octavian Rasnita" <orasnita@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 13 Feb 2013 08:12:00 +0200

Thanks John. I hope I will be able to combine all the advices in something that 
works. :-)

--Octavian

----- Original Message ----- 
From: "John Martyn" <johnrobertmartyn@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Wednesday, February 13, 2013 4:16 AM
Subject: [jawsscripts] Re: methods of Setting a pause or delay in script for 
your synth to finish first. was Re: Re: Speaking a text with a specified voice?


> Call this but replace GetObjectName with your string of text.
> delayIt(((StringLength (GetObjectName (0, 0))*GetVoiceRate 
> ("Global"))/(210)),GetObjectName (0, 0),1)კ
> function delayIt(int theTime, string theText, int theType)
> var
> int trigger,
> int safety
> Say(theText,3)
> while trigger != 1
> let safety = safety+1
> Delay (1, 1)
> if IsKeyWaiting () then
> return
> endif
> if safety >= theTime then
> let trigger = 1
> endif
> endwhile
> let trigger = 0
> let safety = 0
> ;do something else after the delay
> EndFunction
> 
> __________�
> 
> View the list's information and change your settings at 
> //www.freelists.org/list/jawsscripts
>
__________�

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

Other related posts: