[jawsscripts] Re: Schedule events

  • From: Jackie McBride <abletec@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Sat, 23 Feb 2013 21:29:37 -0700

On 2/23/13, Jim Snowbarger <Snowman@xxxxxxxxxxxxxxxx> wrote:
> Trivia Question, in the folowing snippet of code, which message do you think
> will get spoken first?  Hello?  or Goodbye.
> The winner will recieve an all expenses paid trip to nowhere, and a cracked
> version of NVDA.
> Script Test ()
>
> ; start this from the keyboard
>
> ScheduleFunction ("HelpTest", 1)
>
> delay(50)
>
> SayString ("goodbye")
>
> EndScript
>
>
>
> Function helpTest ()
>
> SayString ("hello")
>
> EndFunction
>
>
>
> The answer?  Are you sure you want to know? You're not going to like this.
>
>
>
> Wrong.  Good bye is spoken first, because the jaws script engine is busy
> processing the delay statement when the scheduled function comes due.  So,
> the scheduled event must wait for the main script to finish, even though it
> is due sooner.
>
>
>
>
>
> __________�
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>


-- 
Blame the computer--why not? It can't defend itself & occasionally
might even be the culprit
Jackie McBride
Ask Me Computer Questions at: www.pcinquirer.com
Jaws Scripting training materials: www.screenreaderscripting.com
homePage: www.brighter-vision.com
__________�

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

Other related posts: