Re: Writing of Jaws scripts

  • From: "Angel" <angel238@xxxxxxxxxxxxx>
  • To: <jfw@xxxxxxxxxxxxx>
  • Date: Sat, 21 Aug 2004 10:47:04 -0400

Thank you so much.  You both are so helpful.  I don't think I will spend a
lot of time with scripts as it sounds too hard for my little brain.  I guess
that is why those who do such a good job should make so much money.
----- Original Message -----
From: "Debbie Scales" <debbie@xxxxxxxxxxxxxxxx>
To: <jfw@xxxxxxxxxxxxx>
Sent: Saturday, August 21, 2004 9:38 AM
Subject: Re: Writing of Jaws scripts


> Angel, to add to what Matthew said, you used SayString and it only takes
one
> parameter which is the string that you want spoken enclosed in quotes.
> In your case this is "hello, How are you today?".
> Only Say uses the second parameter of output mode.
> Examples of output modes are: OT_HELP, OT_JAWS_MESSAGE, and
> those are defined in the file HJConst.JSH in your settings enu.  Also,
there
> is just a comma between the string and the output mode.  You have
> an extra set of parentheses.
> This is an example of a say statement:
> Say ("My name is Debbie Scales", OT_message)
> Compared to SayString("My name is Debbie Scales")
> You can find all this in the Scripting Function Reference Manual which can
> be downloaded from
> http://www.freedomscientific.com/fs_support/doc_scriptfunction.asp
> Debbie
>
>
> ----- Original Message -----
> From: "Matthew Horspool" <drjaws@xxxxxxxxxxxxxxxx>
> To: <jfw@xxxxxxxxxxxxx>
> Sent: Saturday, August 21, 2004 8:56 AM
> Subject: RE: Writing of Jaws scripts
>
>
> Hi
>
> It's very difficult to explain to you what you are doing wrong, so this
> may be a bit long-winded. Before we get started it is important to say
> that I am not very advansed with writing JAWS for Windows scripts.
>
> Here is the default AutoStartEvent Function:
> Void Function AutoStartEvent ()
> let g_JavaIgnoreNextActiveItemChange = 0
> let GlobalMousePixel = 3
> FrameClearValues ()
> VirtualStart ()
> if (DefaultFirstTime == 0) then
> let DefaultFirstTime = 1
> Let iWin95 = IsWinNTOr95 ()
> Let iWin2K = ((!iWin95)&&(GetWindowsOS ()==OS_WIN_NT))
> Let GITblHeaders=TBL_HEADER_BOTH;Default behavior
> If (!IsJFWInstall()) then
> ;SayFormattedMessage (ot_app_start, cmsgAppStart1_L,
> cmsgAppStart1_S)
> endIf
> endIf ; DefaultFirstTime == 0
> If BrailleInUse () then
> Let GIBrailleActive = on
> BrailleStart ()
> EndIf
> InitializeMSNSupport();For MSN Messenger Contact speaking.
> let BackForward=0
> let giRestoreFormsModeAfterVirtualizeCPS=FALSE
> EndFunction
>
> And now, here is the modified version that says "Hello, how are you
> today":
> Void Function AutoStartEvent ()
> let g_JavaIgnoreNextActiveItemChange = 0
> let GlobalMousePixel = 3
> FrameClearValues ()
> VirtualStart ()
> if (DefaultFirstTime == 0) then
> let DefaultFirstTime = 1
> Let iWin95 = IsWinNTOr95 ()
> Let iWin2K = ((!iWin95)&&(GetWindowsOS ()==OS_WIN_NT))
> Let GITblHeaders=TBL_HEADER_BOTH;Default behavior
> If (!IsJFWInstall()) then
> ;SayFormattedMessage (ot_app_start, cmsgAppStart1_L,
> cmsgAppStart1_S)
> endIf
> SayString ("hello, How are you today?")
> endIf ; DefaultFirstTime == 0
> If BrailleInUse () then
> Let GIBrailleActive = on
> BrailleStart ()
> EndIf
> InitializeMSNSupport();For MSN Messenger Contact speaking.
> let BackForward=0
> let giRestoreFormsModeAfterVirtualizeCPS=FALSE
> EndFunction
>
> HTH
> Matthew Horspool
> -----Original Message-----
> From: jfw-bounce@xxxxxxxxxxxxx [mailto:jfw-bounce@xxxxxxxxxxxxx] On
> Behalf Of Angel
> Sent: 21 August 2004 13:27
> To: jfw@xxxxxxxxxxxxx
> Subject: Writing of Jaws scripts
>
>
> I was trying to write a short script.  I wanted Jaws to say after saying
> "Jaws for windows is ready", "hello angel, how are you today", as I
> wanted to sort of customize my Jaws experience.  I wrote
> SayString("Hello angel, how are you today")()ot_string) I went to the
> script that said autostart, pressed enter, upon hearing endIf ;
> DefaultFirstTime == 0 I put a blank line above this and wrote my script.
> When I closed my script I got an error which said something to the
> effect I had written an unexpected word.  The script did not take hold.
> What am I doing wrong.  Any help would be appreciated.
>
>
> --
> To post a message to the list, send it to jfw@xxxxxxxxxxxxx
> To unsubscribe from this mailing list, send a message to
> jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.
> Archives located at: //www.freelists.org/archives/jfw
>
> If you have any concerns about the list, post received from the list, or
> the way the list is being run, do not post them to the list. Rather
> contact the list owner at jfw-admins@xxxxxxxxxxxxxx
>
>
> --
> To post a message to the list, send it to jfw@xxxxxxxxxxxxx
> To unsubscribe from this mailing list, send a message to
> jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.
> Archives located at: //www.freelists.org/archives/jfw
>
> If you have any concerns about the list, post received from the list, or
the
> way the list is being run, do not post them to the list. Rather contact
the
> list owner at jfw-admins@xxxxxxxxxxxxxx
>
>
>
> --
> To post a message to the list, send it to jfw@xxxxxxxxxxxxx
> To unsubscribe from this mailing list, send a message to
jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.
> Archives located at: //www.freelists.org/archives/jfw
>
> If you have any concerns about the list, post received from the list, or
the way the list is being run, do not post them to the list. Rather contact
the list owner at jfw-admins@xxxxxxxxxxxxxx

--
To post a message to the list, send it to jfw@xxxxxxxxxxxxx
To unsubscribe from this mailing list, send a message to 
jfw-request@xxxxxxxxxxxxx with the word unsubscribe in the subject line.
Archives located at: //www.freelists.org/archives/jfw

If you have any concerns about the list, post received from the list, or the 
way the list is being run, do not post them to the list. Rather contact the 
list owner at jfw-admins@xxxxxxxxxxxxxx

Other related posts: