[jawsscripts] Re: SayClipboard, was script to clear clipboard

  • From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Thu, 17 Mar 2011 17:35:32 +1100

ah, tom. you've hit the nail exactly on the head eh. <grin.> that's what I 
was hoping you would know, and share with us. perhaps if you have the 
impetous to discover, you would be kind enough to share?
I'd never heard of the straight up Say function before. Thanks to you and 
tony for pointing this out.

----- Original Message ----- 
From: "Bissett, Tom" <tom.bissett@xxxxxxx>
To: <jawsscripts@xxxxxxxxxxxxx>
Sent: Thursday, March 17, 2011 5:18 AM
Subject: [jawsscripts] Re: SayClipboard, was script to clear clipboard


> The say function is permitted.  It is the more suffisticated one because 
> you can choose what voice you want the text spoken with.
> Sorry about the confusion.  I just grabbed the function because it talked 
> about the disuse of the saystring function.
> So it is the saystring function that they want to phase out and now we 
> should use the say function and the sayMessage function.
> I am not sure why the sayMessage function.  I always use the say function 
> to speak information.  I will have to look more closely at the sayMessage 
> function because I don't know the difference between the say function and 
> the sayMessage function.
> Regards
> Tom Bisset
>
> Retail Investment Products, PCG TD
>
> BMO Financial Group
> Tel: (416) 359-7568
>
> E-Mail tom.bissett@xxxxxxx
>
>
>
> Vacation:
>
>
> -----Original Message-----
> From: jawsscripts-bounce@xxxxxxxxxxxxx 
> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman
> Sent: March 16, 2011 1:57 PM
> To: jawsscripts@xxxxxxxxxxxxx
> Subject: [jawsscripts] Re: SayClipboard, was script to clear clipboard
>
> ah. so how's about the straight up, say, function then. is that still
> permitted?
>
>
> ----- Original Message ----- 
> From: "Bissett, Tom" <tom.bissett@xxxxxxx>
> To: <jawsscripts@xxxxxxxxxxxxx>
> Sent: Thursday, March 17, 2011 4:38 AM
> Subject: [jawsscripts] Re: SayClipboard, was script to clear clipboard
>
>
>> The saystring is the one they want us to discontinue using.  Here is what
>> the builtin says:
>> :function SayString
>> :Description The SayString makes the speech synthesizer speak a message.
>> This function is now obsolete since the implementation of the sayMessage
>> function. This function remains for the purpose of testing and debugging.
>> If you are developing new scripts, it is recommended that you do not use
>> this function. Instead, use the SayMessage function.
>> :Param string  This parameter must be either a text string enclosed in
>> quotes, a variable name that contains a string value, or a  function that
>> returns a string value.
>> :Category Strings
>>
>>
>> Tom Bisset
>>
>> Retail Investment Products, PCG TD
>>
>> BMO Financial Group
>> Tel: (416) 359-7568
>>
>> E-Mail tom.bissett@xxxxxxx
>>
>>
>>
>> Vacation:
>>
>>
>> -----Original Message-----
>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman
>> Sent: March 16, 2011 1:12 PM
>> To: jawsscripts@xxxxxxxxxxxxx
>> Subject: [jawsscripts] Re: SayClipboard, was script to clear clipboard
>>
>> indeed tony.
>> thanks for this. yep that would improve things slightly, though not
>> handling
>> yet the ojects on clipboard that you initially desired eh.
>>
>> hey but what's with this, say, function your using below?
>> I've never used that one. is it a current one then?
>> or is that the one they're telling us not to use any more?
>> I use SayString and SayInteger for stuff, but I've never used/seen the
>> plain
>> old say, statement, which obviously takes two params, that you've 
>> included
>> below?
>>
>> ----- Original Message ----- 
>> From: "Tony Hernandez" <tonyhspeaks@xxxxxxxxx>
>> To: <jawsscripts@xxxxxxxxxxxxx>
>> Sent: Tuesday, March 15, 2011 7:10 AM
>> Subject: [jawsscripts] Re: SayClipboard, was script to clear clipboard
>>
>>
>>> Hi Jeff.
>>>
>>> How about something like this in the code so that it doesn't just clamb
>>> up
>>> entirely?
>>>
>>> var
>>>
>>> string clip
>>>
>>> let clip = GetClipboardText()
>>> if clip then
>>> Say (clip,OT_LINE)
>>> ;For Braille users:
>>>
>>> BrailleMessage (clip)
>>> Else
>>> Say ("No text in the clipboard.", OT_ERROR)
>>> EndIf
>>>
>>> ;Of course, the down side is that someone could put that very text into
>>> the
>>> clipboard, but I'm sure that can be
>>> ;dealt with in many ways, like playing a sound instead.
>>>
>>> Tony Hernandez
>>> http://dutyofman.net/
>>> Let us hear the conclusion of the whole matter: Fear God, and keep His
>>> commandments, for this is the whole duty of man. For God shall bring
>>> every
>>> work into judgment, with every secret thing, whether it be good, or
>>> whether
>>> it be evil. (Ecclesiastes 12:13-14)
>>>
>>> -----Original Message-----
>>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman
>>> Sent: Monday, March 14, 2011 3:49 PM
>>> To: jawsscripts@xxxxxxxxxxxxx
>>> Subject: [jawsscripts] Re: SayClipboard, was script to clear clipboard
>>>
>>> Hi tony.
>>>
>>> well, it appears not, not here anywayz. and actually given your cool
>>> idea,
>>> the script/function is a bit less than perfect in one sense.
>>> it conceivably would've been a more complete/optimal script had it 
>>> either
>>> done this, or at very least reported either something like, "no textual
>>> content," when it couldn't find anything, or better yet, if it could 
>>> test
>>> for the name of file(s) on clipboard, if past a certain number, to maybe
>>> auto shove their names into virtual viewer, or something? but, it just
>>> says
>>> nothing, when I press it and files are on the clipboard eh. Great idea
>>> though!
>>>
>>> it's just using a simple builtin FUnction GetClipboardText, which is 
>>> just
>>> a
>>> string function it appears eh. description for it says:
>>>
>>> Retrieves text from the clipboard that is in standard ANSI format.  Each
>>> line ends with a carriage return/linefeed (CR-LF) combination.
>>>
>>> whether it could be tweaked to deal with objects, I'm unsure at this
>>> point
>>> and cannot look into it myself right now.
>>> hth.
>>>
>>>
>>> From: "Tony Hernandez" <tonyhspeaks@xxxxxxxxx>
>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>> Sent: Tuesday, March 15, 2011 6:18 AM
>>> Subject: [jawsscripts] Re: SayClipboard, was script to clear clipboard
>>>
>>>
>>>> Hi Jeff. Is it possible to make JAWS speak nontextual items in the
>>>> clipboard, such as the name of  a file it might be holding?
>>>>
>>>> Tony Hernandez
>>>> http://dutyofman.net/
>>>> Let us hear the conclusion of the whole matter: Fear God, and keep His
>>>> commandments, for this is the whole duty of man. For God shall bring
>>>> every
>>>> work into judgment, with every secret thing, whether it be good, or
>>>> whether
>>>> it be evil. (Ecclesiastes 12:13-14)
>>>>
>>>> -----Original Message-----
>>>> From: jawsscripts-bounce@xxxxxxxxxxxxx
>>>> [mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Geoff Chapman
>>>> Sent: Monday, March 14, 2011 2:45 PM
>>>> To: jawsscripts@xxxxxxxxxxxxx
>>>> Subject: [jawsscripts] Re: SayClipboard, was script to clear clipboard
>>>>
>>>> Yep martin indeed it tiz.
>>>>
>>>> entry is happily sitting in my default.jkm from shared folder, as:
>>>> Windows+JAWSKey+X=SayClipboard
>>>>
>>>>
>>>> script follows:
>>>> Script SayClipboard()
>>>>
>>>> var
>>>>
>>>> string clip
>>>>
>>>> let clip = GetClipboardText()
>>>>
>>>> Say (clip,OT_LINE)
>>>>
>>>> ;For Braille users:
>>>>
>>>> BrailleMessage (clip)
>>>>
>>>> EndScript
>>>>
>>>>
>>>>
>>>> ----- Original Message ----- 
>>>> From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>> Sent: Monday, March 14, 2011 9:07 PM
>>>> Subject: [jawsscripts] Re: SayClipboard, was script to clear clipboard
>>>>
>>>>
>>>>> Thanks Geoff,
>>>>>
>>>>>  Do you happen to know whether that key combination appears in any jkm
>>>>> file?
>>>>>
>>>>>  Martin
>>>>>
>>>>>
>>>>> ----- Original Message ----- 
>>>>> From: "Geoff Chapman" <gch@xxxxxxxxxxxxxxxx>
>>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>>> Sent: Monday, March 14, 2011 1:35 AM
>>>>> Subject: [jawsscripts] Re: SayClipboard, was script to clear clipboard
>>>>>
>>>>>
>>>>>> yep Works here for me martin.
>>>>>> JawsKey+Windows+X?
>>>>>>
>>>>>>
>>>>>>
>>>>>> ----- Original Message ----- 
>>>>>> From: "Martin Slack" <m.g.slack@xxxxxxxxxxxx>
>>>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>>>> Sent: Sunday, March 13, 2011 11:42 PM
>>>>>> Subject: [jawsscripts] Re: SayClipboard, was script to clear 
>>>>>> clipboard
>>>>>>
>>>>>>
>>>>>>> On a related topic, can anyone get the SayClipboard script to work?
>>>>>>> The
>>>>>>> FSDN says this has been present since Jaws 10, but I can find no
>>>>>>> trace
>>>>>>> of
>>>>>>> it
>>>>>>> in versions 10, 11 or 12.
>>>>>>>
>>>>>>>  Martin
>>>>>>>
>>>>>>>
>>>>>>> ----- Original Message ----- 
>>>>>>> From: "Paul Magill" <magills@xxxxxxxxxxx>
>>>>>>> To: <jawsscripts@xxxxxxxxxxxxx>
>>>>>>> Sent: Sunday, March 13, 2011 12:29 PM
>>>>>>> Subject: [jawsscripts] Re: script to clear clipboard and....
>>>>>>>
>>>>>>>
>>>>>>>> Hi Elf & others,
>>>>>>>>
>>>>>>>> I settled on using the following line in my scripts, after much
>>>>>>>> experimenting...
>>>>>>>>
>>>>>>>> CopyToClipboard (" ") ; copy space to clear previous clipboard
>>>>>>>> contents
>>>>>>>>
>>>>>>>>
>>>>>>>> copying a nul string to the clipboard has no affect, the previous
>>>>>>>> contents
>>>>>>>> remain unchanged...
>>>>>>>>
>>>>>>>> CopyToClipboard ("") ; copying a nul string
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> * the purpose is to remove the previous contents, not to have a
>>>>>>>> completely
>>>>>>>> cleared clipboard
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Regards,
>>>>>>>>
>>>>>>>> Paul from Australia
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> ----- Original Message ----- 
>>>>>>>>
>>>>>>>> From: "The Elf" <inthaneelf@xxxxxxxxxxxxxx>
>>>>>>>>
>>>>>>>>
>>>>>>>> if clearing the clip board is figured out, would someone please 
>>>>>>>> send
>>>>>>>> me
>>>>>>>> a
>>>>>>>> copy of the work with insertion instructions? I'm interested myself
>>>>>>>> in
>>>>>>>> this
>>>>>>>> one.
>>>>>>>>
>>>>>>>> elf
>>>>>>>> inthaneelf@xxxxxxxxxxxxxx
>>>>>>>>
>>>>>>>> __________�
>>>>>>>>
>>>>>>>> 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
>>>
>>>
>>> __________�
>>>
>>> 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: