[jawsscripts] Re: Deleting clipboard programatically in JAWS

  • From: Doug Lee <doug.lee@xxxxxxxxxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Tue, 12 Nov 2013 04:54:26 -0500

Wonder if I'm missing something, but why would you need the append at
all?

void Function InsertText (string TextToInsert)
; Inserts the passed string into the document
CopyToClipboard (TextToInsert)
PerformScript PasteFromClipboard ()
EndFunction


On Tue, Nov 12, 2013 at 04:30:39AM +0100, Csaba Godo wrote:
Thanks for the replies. The combination of the two recomended thing 
solved <my problem. The following code clears the clipboard and appends 
the desired text to it and from there inserts into the user's document:

void Function InsertText (string TextToInsert)
; Inserts the passed string into the document
CopyToClipboard(" ") ; A space char is copied as deletion
AppendToClipboard (TextToInsert, FALSE)
PerformScript PasteFromClipboard ()
EndFunction

This code appends the desired text into the user's document. The space 
character will be placed at the end of the inserted text where oterwise 
would be required a space character. So it is perfect!

Thanks,

Csaba
2013.11.11. 23:09 keltez??ssel, Jim Bauer ??rta:
> JAWS doesn't allow copying the null string to the clipboard. You could
> use some other non-printable character ("\1" is what I tested), but
> you'll always have clipboard text with a length of 1--even if JAWS can't
> speak it. If that's "deleted" enough for your purposes, you're golden.
>
>
>
> On 11/11/2013 3:04 PM, Jackie McBride wrote:
>> Well, copytoclipboard("") would certainly do that in short order.
>>
>> On 11/11/13, Csaba Godo <arpadhazi68.jawsul@xxxxxxxxx> wrote:
>>> Hi guys,
>>>
>>> Could somebody tell me how can I delete the content of the clipboard
>>> programatically in JAWS Basic? I have found many clipboard related
>>> commands in FSDN, but no one is for deleting the content. Just appending.
>>>
>>> Thanks in advance?
>>>
>>> Csaba
>>> __________??????
>>>
>>> View the list's information and change your settings at
>>> http://www.freelists.org/list/jawsscripts
>>>
>>>
>>
>>
>
> __________???
>
> View the list's information and change your settings at
> http://www.freelists.org/list/jawsscripts
>
__________???

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

-- 
Doug Lee, Senior Accessibility Programmer
SSB BART Group - Accessibility-on-Demand
mailto:doug.lee@xxxxxxxxxxxxxxxx  http://www.ssbbartgroup.com
"While they were saying among themselves it cannot be done,
it was done." --Helen Keller
__________�

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

Other related posts: