[jawsscripts] Re: SetActiveVoiceProfileByName

  • From: Andrew Hart <ahart@xxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Wed, 23 Mar 2011 17:36:37 -0300

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 
> http://www.freelists.org/list/jawsscripts
> 
> 
> 


__________�

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

Other related posts: