Hello Jimmy,
Here is that ScriptTip.
ScriptTip#102: ChangePunctuation Script.
Synopsis: A script to change punctuation modes on the fly.
Description: Allows the user to cycle punctuation on the fly.
Remarks: Uses the functions GetJcfOption to get the current
punctuation level value, (0=None, 1=Some, 2=Most, and 3=All), then adds 1
to that value.
-Checks to make sure we're not trying to set the value higher than it can
goe, (level 3=All being the highest), and if so, cycle it back to level
0=None.
It then uses the SetJcfOption() to set the punctuation level to the new
value, then runs it through a series of If/ElIf statements to announce the
associated string for that particular value.
*These settings are set back to the current application's stored
punctuation level whenever the application is unloaded.
Example Use: You have punctuation set to "None" in your mail
reader, and you find a situation where you need to hear punctuation, you
could hit Insert+6 to launch the Configuration Manager for that
application; hit Alt+S to drop the Settings menu; hit "S" to get to the
Synthesizer dialog, and use the up and down arrows and select Punctuation
Mode, "All"; hit Alt+F4 to return to the message, and reverse the
setting when finished.
With this script, you just hit Insert+P to cycle around through the
punctuation modes, stopping when you hear "All"!
It's also great for proof-reading documents in your favorite Word
processor, and for quickly hearing those punctuation-filled links on a
particular Internet site!
Parameters: None.
Compatibility: JFW3.3X or higher.
--------------------------------------------------------------------------
1) Hit Control+Shift+0 to launch the Script Manager with the default.jss
file loaded.
2) Hit Control+End to get to the bottom of this script file, then hit
Enter a couple of times--this will give you space to work with.
3) Type in, (or cut and paste), the following lines:
Script ChangePunctuation ()
var
int Level
;Get current level and increment it by 1 level.
let Level=GetJcfOption(opt_punctuation)+1
; Tell jaws to make this new level active.
SetJcfOption(opt_punctuation,Level)
If(GetJcfOption(opt_punctuation) > 3) Then ;if greater than "all",
SetJcfOption(opt_punctuation,0) ; cycle it back to 0, "None".
EndIf
; Check the level, and announce it's associated string.
if GetJcfOption(opt_punctuation) == 0 then
SayString("None")
Elif GetJcfOption(opt_punctuation) == 1 then
SayString("Some")
Elif GetJcfOption(opt_punctuation) == 2 then
SayString("Most")
Elif GetJcfOption(opt_punctuation) == 3 then
SayString("All")
endif
EndScript
4) While in this script, hit Control+D to edit the Script Properties.
Tab down through the General tab and fill in the Synopsis and Description
fields, then tab to the Assign field and hit Insert+P.
5) Select Ok and when back in the Script editor, hit Control+S to
compile the script.
Thanks,
Dennis Brown
[EMAIL PROTECTED]
June 12, 1999
----- Original Message -----
From: Jimmy Ballard <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 15, 1999 6:00 PM
Subject: The punctuation rotor script
> Does anyone have a copy of the script which allows you to change your
> punctuation level from within an application that they could send to me?
> I have been doing a lot of reading and all of the punctuation really gets
> annoying.
> Thank you
> Jim Ballard
>
> -
> Visit the jfw ml web page: http://jfw.cjb.net
-
Visit the jfw ml web page: http://jfw.cjb.net