Hello scott,
It sounds like you added an AutoStartEvent when the file already had one!
If you have an existing AutoStartEvent, (found in Step#3), you only need to
add the SetSynth line within that script.
That is why it gave the "Change in documentation file..." message, because
it thought you were replacing the existing AutoStartEvent function.
And because you added the EndFunction after the SetSynth("Eloq") statement,
it gave the "unknown word" error on the next line after that EndFunction
statement. The original, correct EndFunction statement is several lines
further down the function.
Since you do have an existing AutoStartEvent, then do as instructed in
Step#3:
Hit Control+L to bring up a list of existing scripts and functions. You'll
notice the AutoStartEvent up near the top of that list, just arrow down to
that listing and whack Enter.
Now that you are in the function, hit the End key to get to the end of the
line giving the script's header, "function AutoStartEvent()" and hit Enter.
This will place you on a blank line just underneath that header line.
Type in the following statement:
SetSynth("Eloq")
Now, hit Control+S to compile it. If it compiled Ok, and you want the
synthesizer switched back to the original, then add the appropriate SetSynth
statement to the AutoFinishEvent, using the instructions in the
ScriptTip#104.
If it didn't compile, hit Alt+F4 to exit the Script Manager, and select "No"
to the "Save changes..." prompt and start over.
Thanks,
Dennis Brown, [EMAIL PROTECTED]
Visit the Blind Programming site at http://brown99.home.mindspring.com/
----- Original Message -----
From: scott fischer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, August 15, 1999 9:51 AM
Subject: Re: is there a way
>
>
> Dennis,
>
>
> Doesn't work. Didn't it, asked me to change it in documentation file as
> well as script, didn't know what that meant, plus, didn't like the end
> function after the auto start (setsynth("eloq") ;sets eloquence as
> synthesizer
>
> this was what I wrote, didn't like the end function I put on second line,
> took that out and it did compile, but then it didn't like the fact that I
> didn't change this in my documentation file whatever that is. the error I
> got for end function was (error bla bla unexpected word end) something
like
> that.
>
> Can't win for losing with these damn scripts.
>
> Scott
> At 08:33 AM 8/15/99 -0700, you wrote:
> >Hello scott,
> >
> >Check out ScriptTip#104--it explains how to do that. I'll post it here:
> >ScriptTip#104: Changing Synthesizers Automatically.
> >Synopsis: Shows how to change synthesizers on the fly.
> >Description: Gives details on having a different synthesizer for
> >different applications, and switch back when leaving those applications!
> >Remarks: JFW has a function that will change active
synthesizers
> >on the fly, making it possible to have one synthesizer in one
application,
> >and another synthesizer when in another application, and have them change
> >without restarting JFW!
> >Example: Someone asked if there was a means of switching
> >synthesizers when loading a specific application. That user wanted to
> >switch from their default synthesizer, the Access32 software Dectalk,
> >to the DoubleTalk-LT, whenever they enter VOXChat, so as to free up the
> >sound card for that application.
> >Here is how to do this, but it can be used in any application, such as
> >having Eloquence load whenever going into Microsoft Word, and having it
> >switch back to another synthesizer when leaving Word!
> >Compatibility: JFW3.3X or higher.
>
>--------------------------------------------------------------------------
> >
> >It is as simple as adding a line in the AutoStartEvent, and the
> >AutoFinishEvent functions. If you recall, when these functions are
present
> >within a script file, they get called when the associated application
gets
> >started, and when it is exited, respectively. If they aren't in the
script
> >file, it is very easy to add them yourself.
> >With that in mind, we'll gear these instructions as if you found no
> >AutoStartEvent or AutoFinishEvent functions in your script file; if they
are
> >there, then you can just focus on the instructions for adding the two
> >"SetSynth()" statements.
> >To get the correct synthesizer KeyName, take a look at your JFW.INI file
> >with NotePad, or some other editor. That file is found in the folder JFW
is
> >installed in.
> >
> >1) While in the application you want to associate the synthesizer switch
> >with, hit Insert+0 to launch the Script Manager with that application's
> >script file loaded for editing.
> > if there is no script file for this program, the Script Manager will
create
> >a blank one.
> >2) To see if you already have an AutoStartEvent function, hit Control+L
to
> >bring up the list of scripts/functions in the current script file. It is
> >sorted by name, so the "A" should be the first scripts you come to in
this
> >list. If you have an AutoStartEvent, highlight it and whack Enter. This
> >will place you on that script's header line. Hit End and then Enter to
> >place yourself on a blank line underneath that header line.
> >3) If you don't have an AutoStartEvent, hit Escape and we'll create one.
> >a) Hit F2 to get to the first script in this file, (if there are any).
> >b) If you land on that script, hit the UpArrow once to get on the line
> >above that script. If there are no scripts, then you can just start with
> >the next step.
> >c) Type in, or cut and paste, the following lines: (Note: if you
already
> >had an AutoStartEvent, then just add the following SetSynth line below.)
> >
> >function AutoStartEvent()
> >SetSynth("lt") ;Sets DoubleTalk-LT/LiteTalk as synthesizer.
> >EndFunction
> >
> >This tells JFW that whenever this program is launched, the user wants
their
> >DoubleTalk-LT, or their LiteTalk, to be used as their synthesizer.
> >***Important: if you don't have the external synthesizer turned on at
this
> >point, you'll probably hang the system, requiring a reboot. This is
because
> >you'll be trying to access a serial device that, (as far as the system is
> >concerned), isn't there. This is not a bug in either the synthesizer or
> >screen reader, but rather a User Error--and those are the easiest errors
to
> >fix!)
> >4) Hit Control+S to compile what we have so far. If successful, go to
the
> >next step.
> >5) Hit Control+L again to locate the AutoFinishEvent. If you have one,
> >highlight it and hit Enter, then arrow down to a line underneath the
> >variable declarations and hit End, then Enter to create a blank line.
> >6) If you don't have one, hit Escape to exit the script list and hit
> >Control+End to reach the bottom of the file. Hit Enter a couple of times
to
> >give yourself some room.
> >7) Type in, or cut and paste, the following:
> >
> >function AutoFinishEvent()
> >SetSynth("dtsoft") ;Sets synthesizer back to Access32
> >EndFunction
> >
> >8) Compile with Control+S.
> >
> >Hit Alt+F4 to exit the Script editor and see what response you get when
> >loading and unloading this application!
> >
> >
> >
> >
> >
> >Hope this helps!
> >
> >Thanks,
> >Dennis Brown, [EMAIL PROTECTED]
> >June 12, 1999
> >
> >
> >
> >----- Original Message -----
> >From: scott fischer <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Saturday, August 14, 1999 7:25 PM
> >Subject: is there a way
> >
> >
> >>
> >>
> >>
> >> List!
> >>
> >> I have been noticing that Eloquence is as crisp as dectalk, and
anything
> >> I've heard. Its fast, clear and rather enjoyable. I was curious, is
there
> >a
> >> way that when I go into word 97, the system auto changes to Eloquence
from
> >> dectalk?
> >>
> >> I would really like it if when I go into word, it changes I guess you
> >> would call it, "On the fly". Is this possible?
> >>
> >> If so, how and can some one who knows please email me privately so it
can
> >> be explained, maybe we can even talk via phone.
> >>
> >>
> >> thanks,
> >>
> >> Scott
> >>
> >> mailto: [EMAIL PROTECTED]
> >>
> >> -
> >> Visit the jfw ml web page: http://jfw.cjb.net
> >
> >-
> >Visit the jfw ml web page: http://jfw.cjb.net
> >
> >
> mailto: [EMAIL PROTECTED]
>
> -
> Visit the jfw ml web page: http://jfw.cjb.net
-
Visit the jfw ml web page: http://jfw.cjb.net