[jawsscripts] Schedule events

  • From: "Jim Snowbarger" <Snowman@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sat, 23 Feb 2013 22:21:44 -0600

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

Other related posts: