[jawsscripts] Re: Is there a better way to do this
- From: "Sean Randall" <seanr@xxxxxxxxxxxxxxx>
- To: <jawsscripts@xxxxxxxxxxxxx>
- Date: Fri, 24 Jul 2009 09:29:15 +0100
Hi,
Really you're aiming for some sort of concatenation here - putting the
strings together.
Not that you should be using say string but...
sayString("There are "+digit1+digit2+" minutes "+digit3+digit4+" point
"+digit5+" seconds left in the track on the left deck.")
The idea is to have a single string going to the synthesizer rather than a
bunch of small, separate strings. As I said, you shouldn't be using
sayString and it'd probably be better for you to right a function to return
the whole time as a single variable, then output that. If you're
distributing the scripts, you'd probably want to use a message file and use
placeholders for the time and deck, so one message could output for left and
right decks or whatever other setup you have.
Cheers,
Sean.
-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of GianniP46
Sent: 24 July 2009 09:00
To: JawsScriptsList
Subject: [jawsscripts] Is there a better way to do this
OK guys,
I made a big discovery in my program scratchlive tonight. I found out that
the remaining time is displayed in graphics that could be labeled. with the
digits from 0 through 9. I tried to create a frame around these 5 graphics
for each deck, but the frames wouldn't read. I then created the following
script, but I want to know if there is a better way of doing this. Jaws
reads the info slowly. Also, the other thing that I don't like is that the
remaining time is red in single digits. I would like it to be red in pares.
Here is the code:
Script TimeRemainingLeftDeck ()
Var
String Digit1,
String Digit2,
String Digit3,
String Digit4,
String Digit5
MoveToFrame ("TimeRemainingLeftDeck")
Let Digit1 = GetWord ()
NextWord ()
Let Digit2 = GetWord ()
NextWord ()
Let Digit3 = GetWord ()
NextWord ()
Let Digit4 = GetWord ()
NextWord ()
Let Digit5 = GetWord ()
SayString ("There are")
SayString (digit1)
SayString (digit2)
SayString ("minutes")
SayString (digit3)
SayString (digit4)
SayString ("Point")
SayString (Digit5)
SayString ("Seconds left in the track on the left deck")
EndScript
I am using Jaws 10.
Gian Pedulla
GianniP46@xxxxxxxxxxxxx
LETS! GO! METS!
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com
View the list's information and change your settings at
http://www.freelists.org/list/jawsscripts
Other related posts: