[jawsscripts] Re: SetActiveVoiceProfileByName

  • From: "Bissett, Tom" <tom.bissett@xxxxxxx>
  • To: "'jawsscripts@xxxxxxxxxxxxx'" <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 24 Mar 2011 09:08:09 -0400

Hi Jim,  I am running jaws 11.  I hope it is fixed in jaws12.  

Tom Bisset

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: March 24, 2011 7:40 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: SetActiveVoiceProfileByName

Hi,
If this is in JAWS 12, someone might want to report it to FreedomScientific.

Jim

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Bissett, Tom
Sent: Wednesday, March 23, 2011 4:50 PM
To: 'jawsscripts@xxxxxxxxxxxxx'
Subject: [jawsscripts] Re: SetActiveVoiceProfileByName

Thank you so much Andrew.  I would never have thought of going that route.  I 
did take a look at the builtin file but believed implicitly what it told me so 
I couldn't figure out the problem.
I will look more closely at what it has to say next time.
Regards
Tom Bisset

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Andrew Hart
Sent: March 23, 2011 4:37 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: SetActiveVoiceProfileByName

According to builtin.jsd, SetActiveVoiceProfileByName expects its first
argument to be an integer, which is clearly incorrect.

If you edit the builtin.jsd file and change the first parameter type to
String instead of Int, the Script Manager will allow your script source
to compile.

In case my explanation is not clear, open builtin.jsd in the script
manager from the shared folder.  If you search for
SetActiveVoiceProfileByName, you will find the following lines

:function SetActiveVoiceProfileByName
:Description Sets the active voice profile to the one with the given name.
:Param int  The name of a voice profile.
:Optional
:Param Int/persist This optional parameter was added in JAWS 10.0.  The
default value for the parameter is FALSE.  This parameter controls
whether or not JAWS makes the change permanent by saving the change in
active voice profile to Default.jcf.
:Category Voices


You need to change the line
:Param int  The name of a voice profile.
to be
:Param string  The name of a voice profile.
and then save the file.

Hth,
Andrew.

On 23/03/2011 4:33 PM, Bissett, Tom wrote:
> I am trying to use the function SetActiveVoiceProfileByName.  If I put the 
> name in quotes it is telling me that it is "incorrect parameter format",  if 
> I supply the name in the function with out quotes it tells me it doesn't 
> recognize the variable.  If I put it in to a variable it gives me the error 
> "incorrect parameter format" message.  I am not sure what is looking for.
> Any ideas on what might be wrong?
>
> Any help is appreciated.
> Tom Bisset
> __________�
>
> View the list's information and change your settings at
> //www.freelists.org/list/jawsscripts
>
>
>


__________

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts


This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are addressed.  If you have 
received this e-mail in error, please notify the sender immediately and then 
delete it.  If you are not the intended recipient, you must not keep, use, 
disclose, copy or distribute this e-mail without the author's prior permission. 
 The views expressed in this e-mail message do not necessarily represent the 
views of Highmark Inc., its subsidiaries, or affiliates.
__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: