[jawsscripts] Re: String question

Hi Waine.
I noticed this is actually chopping the first word from the left, so I 
substitut4ed 
stringhchopright.
However, it seems with jaws 8 that the longer the line is, the less jaws knows 
where the end 
word starts so that you actually start to get part of the last word.

Any ideas?

D C

Your unadulterated message follows: 
 Subject: [jawsscripts] Re: String question 
 Date: 20 Nov 2007

Try

Script test ()
var
string line
let line = getline()
let line = stringChopLeft (line, StringLength (StringSegment (line, " ",
1))+1)
let line = stringChopLeft (line, StringLength (StringSegment (line, " ",
1))+1)
saystring(line)
EndScript

W 

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] 
Sent: November 20, 2007 02:09
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] String question

OK,
 
I have an app. that I want to modify the say next and say prior line pc
cursor scripts.  For example, if I am going to the next line, I want
Jaws to read the whole line minus the first two words.  is there a way
to get a line then chop off the first two words and then have jaws speak
the rest of the line?
I was able to do it with chopping characters, but not with words.  My
function is below.
 

Void Function SayToEndOfLine ()

var

string Line,

STRING PartLine

LET Line = GetLine ()

Pause ()

;SayString ("Fired")

LET PartLine = StringChopLeft (Line, 6)

Pause ()

SayString (PartLine)

EndFunction

 
How can I do words instead of characters?
THANKS!
 
Gian Carlo Pedulla
GianniP46@xxxxxxxxxxxxx
 
LETS! GO! METS!
__________
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: