[jawsscripts] Re: String manipulation

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Tue, 6 Jul 2010 09:38:13 +1000

quickest and simplest way, unless you need this different for other parts of 
the application, would probably be to use dictionary manager, insert+d, then 
hit add button, and type, say, 09, then tab once and in the replacement 
field, type simply, 9. then hit ok. and do that for all numbers with leading 
zeros that you want translated?  then hit control+s to save, and you should 
be right.  but, you can of course, get frames to trigger scripts or 
functions, so, if you were aware of how to utilize the scdripting language 
as jackie previously indicated, you could get it to do that, but it would be 
a bit more complicated to set up.

dictionary manager definitely the quickest and easiest way. caveat being 
that of course those numbers will always speak like that, no matter where 
they occur in that application. not just in the count down timer frame 
you've gotten to speak etc.

hth.

From: "Saylien Brown" <saybro@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Tuesday, July 06, 2010 8:29 AM
Subject: [jawsscripts] Re: String manipulation


> What about if the number you're having read is within a frame?
>
> I've created a frame to read a countdown timer,
> and JAWS always says "zero9, zero8, zero7..." and
> so on instead of simply "9, 8, 7...." It's quite
> annoying and I wish there was a way to tell JAWS
> to say the number minus the proceding zero. Any
> setting I can adjust for this to happen?
>
> I'm using JAWS 11 under Windows 7 Home Premium.
>
> At 05:05 PM 7/5/2010, you wrote:
>>Since this is a number, u could simply do a StringToInt & then
>>sayInteger(). The 0's will be wacked. Or u could do a loop & chop off
>>the 0's.
>>
>>On 7/5/10, Bissett, Tom <tom.bissett@xxxxxxx> wrote:
>> > Hi,  I have a three digit number.  The first two positions  can be 
>> > zeroes.
>> > What I want to do is to not have jaws speak the zeroes whether there is 
>> > one
>> > or two of them but rather just speak the whole number left after the 
>> > zeroes
>> > have been suppressed or removed.
>> > Does anyone have any suggestions on how I can accomplish this?
>> >
>> > Thanks
>> >
>> > Tom Bissett
>> > __________�
>> >
>> > View the list's information and change your settings at
>> > http://www.freelists.org/list/jawsscripts
>> >
>> >
>>
>>
>>--
>>Change the world--1 deed at a time
>>Jackie McBride
>>Scripting Classes: http://jawsscripting.lonsdalemedia.org
>>homePage: www.abletec.serverheaven.net
>>For technophobes: www.technophoeb.com
>>__________�
>>
>>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
> 

__________�

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

Other related posts: