[jawsscripts] Re: Reading The Date And Time With One Keypress (I am out of the office on vacation.)

  • From: "David Farough" <David.Farough@xxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 10 Jul 2017 10:49:27 -0400

I will be 

"Dennis Brown" <DennisTBrown@xxxxxxxxxxx> 07/10/17 10:49 >>>

A simple addition to the SaySystemTime script gives me the time and date 
with a single keypress, if that is what you were looking for.
Load the Script Manager from the Utilities menu and hit Control+Shift+D for 
Default.jss.
Press F3 and find "script SaySystemTime."
Move to the last line of the script "EndScript."
Move up and place the following line above the SayUsingVoice... line:
Let sTimeOrDate = sTimeOrDate+ SysGetDate ()
Press Control+S to compile.
Now, when you press JawsKey+F12, you get time and date.
Hope this is helpful!

Dennis

-----Original Message----- 
From: Jeremy Richards
Sent: Sunday, July 09, 2017 11:11 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Reading The Date And Time With One Keypress

I understand the concept you are conveying, and after reading your post and
giving this a bit more thought, it might not be all that easy to add
"additional features" to existing scripts--having current scripts speak
additional information with a double press. :)

Thank you tremendously Jeff for taking the time to convey such great
information.

JR

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman
Sent: Sunday, July 9, 2017 7:50 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Reading The Date And Time With One Keypress

Hi Jeremy.

I'm assuming that Jonathan is referring to the: IsSameScript () conditional
function, inside the SaySystemTime Script.

The first line in the current
IsSameScript () condition, e.g.:
Let sTimeOrDate = FormatString (cmsgGetSysDate, SysGetDate ())

will be the function that runs when the key is pressed twice, thus
satisfying the condition that it is the, same script, being invoked.
The line that occurs after the else in such a condition, E.G. in this case:
Let sTimeOrDate = FormatString (cmsgGetSysTime, SysGetTime ())

will be the code that runs when the key is only pressed once.

To achieve the original poster's desire, Jonathan is suggesting removal of
that entire condition:
If IsSameScript ()
; Run code when key is pressed twice,
Else
; Run code when key is presse once,
EndIf

Condition.
Such that it formats the SysGetTime, and SysGetDate strings, into one
consecutive string, then invokes that string into one of the, Say,
functions.
In the case of jaws 12, which is what I have here, they have used the,
SayUsing Voice

Function to speak that particular formatted string.

Be warned though, that if you happen to be running Doug's excellent and very
helpful Skype Scripts, which makes a new user Default.jss, and renames the
original user Default.jsB, to default_FS.JSB, you will have additional
caveats around compiling these changes, the full extent of which I'm at
present unfortunately fairly unclear about myself.

However I will ask Doug about this onList in a moment, and his answer may
well assist you in successfully navigating this.

O, and I'm afraid because of this lack of knowledge, I was also unable to
experiment for you with the FormatString function, which I'm also not very
familiar with I'm ashamed to say, And to compile and test a specific code
example of removal of the IsSameScript condition, if you were perhaps
wondering why I didn't "bother", to provide this for you.  :).  It wasn't
out of pure lazyness I can assure you. :).
I tried to look up the FormatString function in the latest FSDN, but was
even unable to successfully do this!
:(

Hope this hhelps a bit.


regards
Geoff C.
----- Original Message -----
From: "Jeremy Richards" <jeremy.richards7@xxxxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Monday, July 10, 2017 8:48 AM
Subject: [jawsscripts] Re: Reading The Date And Time With One Keypress


Hi Jonathan,

Where might I find more JAWS related info on the topic you mentioned
below:
"the conditional that is used for repeated keystrokes."

JR


----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Jonathan Cohn
Sent: Sunday, July 9, 2017 1:05 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: Reading The Date And Time With One Keypress

OK, find the script mentioned in this conversation, and put it in your own
personal copy of default.jss (along with code generally used to insure
that
your current default.jss is getting updated by FS).
Then remove the conditional that is used for repeated keystrokes.


Best wishes,

Jonathan Cohn



On Jul 5, 2017, at 6:57 PM, Pablo Cesar Morales <pablocmd2014@xxxxxxxxx>
wrote:

You can look for the keystroke "SaySystemTime" in the keyboard
manager, and assign what ever key you want. Just remember that it is a
default keystroke, and no matter what you are doing, every time that
you press that key, jaws is going to tell you the time and date.


-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of HICKS, Steven
(Redacted sender "steven.hicks" for DMARC)
Sent: Wednesday, July 5, 2017 4:58 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Reading The Date And Time With One Keypress

Is there a way to do this rather than having to use JAWS key plus F12
twice?
Many thanks in anticipation,



**********************************************************************
******
****************************************

This message may contain confidential information. If you are not the
intended recipient please inform the sender that you have received the
message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail
or take any action in relation to its contents. To do so is strictly
prohibited and may be unlawful. Thank you for your co-operation.

NHSmail is the secure email and directory service available for all
NHS staff in England and Scotland. NHSmail is approved for exchanging
patient data and other sensitive information with NHSmail and other
accredited email services.

For more information and to find out how you can switch,
https://portal.nhs.net/help/joiningnhsmail


__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts


__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts



__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts



__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts

__________�

View the list's information and change your settings at
//www.freelists.org/list/jawsscripts ;

__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts




Ce courriel est destiné exclusivement au destinataire mentionné en titre et 
peut contenir de l'information privilégiée, confidentielle ou soustraite à la 
communication aux termes des lois applicables. Toute divulgation non autorisée, 
toute reproduction ou réacheminement est interdit. Si vous n'êtes pas le 
destinataire de ce courriel, ou n'êtes pas autorisé par le destinataire visé, 
ou encore, si vous l'avez reçu par erreur, veuillez le mentionner immédiatement 
à l'expéditeur et supprimer le courriel et les copies.  

This e-mail message is intended for the named recipient(s) and may contain 
information that is privileged, confidential and/or exempt from disclosure 
under applicable law. Unauthorized disclosure, copying or re-transmission is 
prohibited. If you are not a named recipient or not authorized by the named 
recipient(s), or if you have received this e-mail in error, then please notify 
the sender immediately and delete the message and any copies.

__________�

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: