[jawsscripts] Re: How to obtain the last spoken speech text by JAWS?

  • From: Artur Räpp <rtr@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Wed, 8 Jul 2020 18:38:24 +0300

Hi,

If the last entry is too few  then you can do something similar

Script test1 ()

var
string sHistory,
string sText,
int counter

let counter = -3 ; last 3 entries
let sHistory = GetSpeechHistory()

while (counter<0)
let sText = sText + stringSegment(sHistory, "\n", counter) + "\n"
; "\n" for pauses in speech
let counter = counter + 1
endWhile

sayString(sText)

EndScript

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On 
Behalf Of Udo Egner-Walter
Sent: Wednesday, July 8, 2020 5:53 PM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: How to obtain the last spoken speech text by JAWS?

Hi Jooyoung, 

to get the last line of SpeechHistory you can use: 

SayString (StringSegment (GetSpeechHistory(), "\n", -1))

But as Mr. Doug Lee said this can lead in unexpected results if something was 
added to speech chain while getting the last line. 

Best wishes 
Udo 



Am 08.07.2020 um 16:11 schrieb JooYoung Seo <jooyoung@xxxxxxxxxxx>:

Thanks very much for your replies, Shan  and Steve!

Yes, as Steve said, I am looking for a function that gives me the
most-recent-spoken chunk. I really need that for my JAWS script.

I am still open to any comments or suggestions.

All the best,

Jooyoung


On 7/8/20, Steve Nutt <steve@xxxxxxxxxxxxxx> wrote:
I don't think that is what he was asking.  He wants a script function to get
the most recent entry from JAWS history and have it spoken.

I don't know of one at this point.

Thanks.

All the best

Steve

--
Computer Room Services
77 Exeter Close
Stevenage
Hertfordshire
SG1 4PW
T: +44(0)1438-742286
M: +44(0)7956-334938
F: +44(0)1438-759589
E: steve@xxxxxxxxxxxxxx
W: https://www.comproom.co.uk

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On
Behalf Of Shan Noyes
Sent: 08 July 2020 14:38
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] Re: How to obtain the last spoken speech text by
JAWS?

Hi
It is called speech history the way to get to it is hold down the jaws key
hit the spacebar you'll hear a click then hit the letter h for history.  You
can cursor up and down to see what jaws has spoken.

Have a good day and stay safe.



-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx <jawsscripts-bounce@xxxxxxxxxxxxx> On
Behalf Of JooYoung Seo
Sent: Wednesday, July 8, 2020 7:30 AM
To: jawsscripts@xxxxxxxxxxxxx
Subject: [jawsscripts] How to obtain the last spoken speech text by JAWS?

-------------------------------------------------------------
WARNING, this email originated from outside of SaskTel.
Do not click links or open attachments unless you trust the sender and
believe the contents are safe.
--------------------------------------------------------------

Hello,

I was wondering if there exists any function to get the last spoken speech
text by JAWS.

I know there is GetSpeechHistory() function, but I am looking for the
function that only fetches the very last spoken text.

Any advice would be so much appreciated.

Best regards,

JooYoung
__________

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

NOTICE: This confidential e-mail message is only for the intended
recipients. If you are not the intended recipient, be advised that
disclosing, copying, distributing, or any other use of this message, is
strictly prohibited. In such case, please destroy this message and notify
the sender.
__________

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: