Hello civi,
You're loading the correct script set, since you've verified it by using
Insert+0 to load the actual scripts into the editor. The incorrect script
set name displayed with the Insert+Q is just getting read from the script
named "ScriptFileName()" within the default.jss file. Since you don't have
this particular script within the local script file, the global version of
that script is getting launched when you hit the Insert+Q hotkey.
Wonder if there is a way to have that function global, yet return info on
the currently activated script set?
Perhaps something like this would give more realistic info when checking for
the currently active script set. (I'm doing this one off the cuff, so there
are probably tighter routines that can be used.)
Script ScriptFileName()
var
string LocalFileName ; Variable to hold local app's script filename.
let LocalFileName=GetScriptFileName(TRUE) ; assign local name.
Say("The active script set is ",ot_string)
If(LocalFileName == "") Then ; if that variable is empty,
Say(GetScriptFileName(FALSE), Ot_string) ; then say the current default.
Else ; but if it isn't empty,
Say(LocalFileName,ot_string) ;announce the local filename!
EndIf
Say(GetAppFileName(),ot_string) ; and announce the local app name.
EndScript
Since the current default ScriptFileName() script is "hard-coded" to
announce a specific message of "default" when there is no local script of
that name, you'll always get that "default" message announced, but with that
script above as the default ScriptFileName(), the local version would never
be needed.
All comments and suggestions welcomed!
Thanks,
Dennis Brown, DB Tech! 770-465-9621
[EMAIL PROTECTED]
----- Original Message ----From: civi <[EMAIL PROTECTED]>
To: jawslist <[EMAIL PROTECTED]>
Sent: Wednesday, November 10, 1999 7:57 PM
Subject: help with scripts
> I purchased the Grolier 2000 encyclopedia. Downloaded the scripts from the
> Washington School for the Blind WEB site. I unzipped them to
> C:\jfw33\settings\enu.
> When I start the program, Insert plus q shows the default scripts are
> loaded. I pressed insert plus zero and it put me at the scripts for the
> encyclopedia. I pressed ctrl plus s, and then exited. Still the default
> scripts get loaded for the encyclopedia.
> Where have I blundered?
> Tom and the super guide dog Benson
>
> -
> Visit the jfw ml web page: http://jfw.cjb.net
>
-
Visit the jfw ml web page: http://jfw.cjb.net