[jawsscripts] Re: Deleting clipboard programatically in JAWS

  • From: Csaba Godo <arpadhazi68.jawsul@xxxxxxxxx>
  • To: jawsscripts@xxxxxxxxxxxxx
  • Date: Tue, 12 Nov 2013 04:30:39 +0100

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

Other related posts: