Jeff,

Just as a side note, getting the synthesizers collection on every OnSpeak comes at a pretty heavy price. Just to test and play it is fine but I wouldn't want this script always doing this with every OnSpeak. So I was going to give you great words of wisdom on how you really should do this and realized you can't <smile>. This is just an oversight on our part so we'll be adding a Synthesizers.OnActivate event. This event would fire whenever the synthesizer changed and give you the current Synthesizer object. We already did this for BrailleDisplays.OnActivate. This way you could just hook the event and when the synth changes to the one you are interested in then you can set a flag that you can check in your OnSpeak event. This would be much more efficient.

Regards,
Doug

Jeff Weiss wrote:
Okay, Thanks.
The Synthesizers.Active.Description Works great. Jeff Weiss

-----Original Message-----
From: Aaron Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 27, 2008 7:30 AM
To: [email protected]
Subject: Re: Another routine

Almost.

SynthesizerDescription needs a dot separator. Synthesizer is the object,

and Description is the property, so you would do:

If Synthesizer.Description = "DECtalk Access32 (Window-Eyes)" Then

That's one of the reasons why turning on punctuation when reviewing code

is so important.

But even then, you need to determine what the active synthesizer is, not

just any random synthesizer. The Active property of the Synthesizers object (a collection) gives you back a Synthesizer object (a single object) representing the active synthesizer. You can then compare its description to the string you're interested in. So you really want:

If Synthesizers.Active.Description = "DECtalk Access32 (Window-Eyes)"
Then

Aaron

Jeff Weiss wrote:
Ok, Aaron, I see that--thanks.
Now when the script runs without errors, should I be able to press a
key
say control-shift-t for the title and hear the "DECtalk Says " before
the title?
-----Original Message-----
From: Aaron Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 26, 2008 4:08 PM
To: [email protected]
Subject: Re: Another routine

Jeff Weiss wrote:
If SynthesizerDescription = "DECtalk Access32   (Window-Eyes)" Then
I think you've got too many spaces between Access 32 and (Window.
There
should be only once space.

Aaron




--
Doug Geoffray
GW Micro, Inc.
Voice 260-489-3671
Fax 260-489-2608
http://www.gwmicro.com

Reply via email to