[jawsscripts] Re: Reading The Date And Time With One Keypress

  • From: Jeremy Richards <jeremy.richards7@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Sun, 9 Jul 2017 20:11:17 -0700

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

Other related posts: