Hello scott,

You need to add the date function to the same script the time function is
called from.  Here are instructions to do that:
1)  Hit Control+Shift+0 to launch the Script Manager.
2)  Hit Control+L to bring up a list of scripts and functions found in this
particular script file.
3)  Hit the letter "S" to jump to the section of script titles starting with
that letter.
4)  Arrow down to the line that says, "SaySystemTime" and whack Enter.  This
places you in that particular script.
5)  Arrow down to the line that reads,
; SayUsingVoice ( VCTX_MESSAGE, SysGetDate(), ot_string)
and remove the semicolon at the beginning of that line.
6)  Hit Control+S to compile the changes and hit Alt+F4 to exit the Script
Manager.

Hit Insert+F12 and see if you get the date and time; if not, unload JAWS
from memory and reload, then try Insert+F12 again.
Be sure that the Insert+F12 isn't assigned to the frame you created earlier
around that 3rd-party clock utility.  If it is, then before you get out of
that script, hit Control+D to enter it's properties, and tab down to the
"Assign to Hotkey..." field and hit the Insert+F12 to reassign it to this
script.


If you want to get fancy, you can replace that script with the script found
in the following ScriptTip#101:
Script Tip#101:     Date and Time with Insert+F12!
Synopsis:           Announces Time and Date with the Insert+F12 key.
Description:        Announces system time with first Insert+F12 keypress,
and system time and date with a double-keypress of that same key.
Remarks:            You probably know that the Insert+F12 will announce
the system's time, but did you know that you can also have it announce
the day and date as well?
The JFW functions, "SysGetDate()" and "SysGetTime()" give this info, and
are used in the script "SaySystemTime()," which is assigned to the
Insert+F12 keystroke.  To get the date announced as well, you'll need to
remove the ";" from the beginning of the line that executes the date
function, and add a routine that will check for, and detect a double-press
of the Insert+F12, and announce the time and date.

Example:            When you hit the Insert+F12, you get the system's time
announced, using the "Message" voice context.  This script will also
announce the system's day and date in that same voice, when you hit the
assigned keystroke twice.
Thanks to Darrell Shandrow for the tip on the double-keystroke routine!
Compatibility:      JFW3.3 or higher.

--------------------------------------------------------------------------
1)  Hit Control+Shift+0 to launch the Script Manager with the default.jss
file loaded.
2)  Hit Control+L and hit the letter "S" to take you to the scripts that
begin with  that letter, then arrow down to highlight the "SaySystemTime()"
function and whack Enter.
3)  Arrow down to the line containing
          ";SayUsingVoice(VCTX_Message,SysGetDate(),OT_String)" and
remove the ";" from the beginning of the line.

If you want the Time and Date spoken with only a single press of the
Insert+F12, then hit Control+S to compile the modification, then Alt+F4 to
exit the Script Manager.

If, however,  you want only the time spoken with a single Insert+F12
keystroke, and both the date and time spoken only when you issue the
Insert+F12 keystroke twice rapidly, then replace the current SaySystemTime
script with the following steps:
1)  Arrow up to the current SaySystemTime script and hit Control+Delete,
then hit Control+S to compile.
2)  Cut and paste, or just type in, the following script to replace the
SaySystemTime script you just deleted.

Script SaySystemTimeAndDate ()
if IsSameScript () then
;Did the keystroke get hit twice rapidly?  If so, announce date and time.
SayUsingVoice ( VCTX_MESSAGE, SysGetTime(), ot_string)
SayUsingVoice ( VCTX_MESSAGE, SysGetDate(), ot_string)
else
; if it was only hit once, just announce the time alone!
SayUsingVoice ( VCTX_MESSAGE, SysGetTime(), ot_string)
EndIf
EndScript

3)  While on a line within this particular script, hit Control+D to edit
it's properties.
4)  Tab to Synopsis and Description, and fill in those fields.
5)  Tab to "Assign keystroke" and hit Insert+F12.  If you get a warning
that this keystroke is already assigned, tab to Ok and whack Enter.
6)  Tab to Ok and whack Enter.
7)  Hit Control+S to compile with the new changes, then hit Alt+F4 to close
the Script Manager.
8)  Hit Insert+F12 twice rapidly, and if it doesn't give the date as well
as the time, then recycle JFW by unloading it from memory.  This will
make the new settings active.

Thanks,
Dennis Brown

Hope this helps!


----- Original Message -----
From: scott fischer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, August 02, 1999 6:24 PM
Subject: Re: ms media and Clock frame.


>
>
> Dennis,
>
> Yes, I see no place where it would speak the date, therefore, I installed
> the tclock program which will speak date as well as time. With jfw 33, it
> speaks the time, but it doesn't auto speak any date. Is there a date I am
> missing?
>
> If there is a date and jfw33 will speak it, why is not speaking it when I
> hit insert/f12?
>
> THANKS, Scott
> At 08:22 AM 8/2/99 -0700, you wrote:
> >Hello scott,
> >
> >About the Media player not closing after sound file is finished...
> >I haven't got a clue, but if you find out, please post the steps needed!
I
> >took a look at the filetypes area under Folder options, ad I don't see
any
> >item that one would toggle to have it close after finished, but perhaps I
> >missed something.
> >
> >On your frame around the clock...
> >I turned on my TaskBar clock and set a frame around it with the following
> >steps:
> >(Note--the built in functions JFW3.3 offers will do the same, and won't
> >clutter up the TaskBar, and doesn't need a frame.  Is there some benefit
to
> >using your third-party clock utility?)
> >
> >1)  From the Desktop, press Tab until you are on the TaskBar.
> >2)  Hit Insert+Numpad dash twice rapidly.  You should hear
> >"InvisibleCursor."
> >3)  Right arrow over to the beginning of the time display and hit
> >Control+Shift+[ to set the left boundary of the frame.
> >4)  Right arrow over to the right edge of your time/date display and hit
> >Control+Shift+].  This will set the right boundary of the frame and place
> >you in the "General" dialog of this frame's properties.
> >5)  Type in a name for this new frame, such as "DateAndTime," without the
> >quotes, and without any spaces.
> >6)  Tab down to Description: and type in a short description of the
frame,
> >such as "My TaskBar date and time frame."  (This isn't a necessity, but
it
> >is a good habit to get into.)
> >7)  Tab down to the field, "Save in Frame file:"
> >Here, I believe, is the problem you're having.  This field has two items
in
> >a list box; the first item is the currently active application's frame
file
> >name, (which in this example would be "Explorer,"), and the second
listing
> >is "Default."
> >Instead of typing in the filename, just arrow down until "default" is
> >highlighted and hit Tab to move to the next field, where you'll assign it
a
> >keystroke.
> >8)  Once in the Keystroke assignment field, hit Insert+F12, and if you
get
> >the warning message that this keystroke is already assigned to another
> >function, tab once and select "Ok."
> >9)  Hit Control+Tab until you reach the last dialog named "Real Window."
> >10)  Clear the "Name:," "Window must contain:," and the "Frame must
> >contain:" fields.
> >11)  Tab to, then whack Enter on, the "Ok" button.
> >
> >That should have your frame set correctly around that date/time display,
but
> >I still recommend letting the JFW internal functions do that for
you--that
> >is just one less item you'd need loaded on startup!
> >At any rate...hit Insert+F12 and see if you get the desired results.
> >
> >
> >Hope this helps, and if anyone can add any further suggestions, please
fell
> >free to jump right in!
> >
> >
> >Thanks,
> >Dennis Brown, [EMAIL PROTECTED]
> >
> >
> >
> >
> >----- Original Message -----
> >
> >-
> >Visit the jfw ml web page: http://jfw.cjb.net
> >
> >
>
> -
> Visit the jfw ml web page: http://jfw.cjb.net

-
Visit the jfw ml web page: http://jfw.cjb.net

Reply via email to