Hi. One suggestion you might want to try out until you get somewhat used to the syntax is to turn on all your punctuation. if you are doing scripting in notepad, just do it there since punctuation is local to the set.

Many thanks.

Jeff Weiss said the following on 8/27/2008 10:04 AM:
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





--
Raul A. Gallegos -- GW Micro Technical Support
Voice: 260-489-3671 -- Fax: 260-489-2608
WEB: http://www.gwmicro.com

Reply via email to