[jawsscripts] Re: String question

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

Other related posts: