Questions tagged [clipboarddata]

Questions dealing with editing and using clipboard data.

Questions dealing with editing and using clipboard data. eg: Storing a string in the Windows clipboard.

165 questions
2
votes
0 answers

How to access clipboard's 'image content'

In Android samsung s5 device, when I long click on edittext, 'Clipboard' option is available to paste content(image+text) from clipboard. I want that my user can paste image from clipboard.But when I click on clipboard, all clipboard's images are…
2
votes
1 answer

How do I prevent my clipboard monitor to copy the clipboard data twice?

I've been working on a simple clipboard monitor that saves the content of the clipboard on a file text when there is a change in the clipboard. Everything works fine but I noticed that whenever I copy something, the text is copied twice in…
Shid
  • 1,336
  • 1
  • 15
  • 18
2
votes
1 answer

How to set Image to clipboardData in oncopy event

I want to implement ctrl+c event in canvas (like in painters) from selected region to OS buffer. Based on this answer I can add copy listener and change clipboard data there - which works perfectly with text. But I can't find how to put…
deathangel908
  • 8,601
  • 8
  • 47
  • 81
2
votes
1 answer

HTML5 Clipboard API: paste custom format

We are using a 3D CAD application which allows to copy the 3D data in a special format to the clipboard. We now want to paste this 3D data (basically it's structured as XML) in the browser. I tried a lot with the HTML5 Clipboard API, but besides…
Andreas Remdt
  • 91
  • 1
  • 10
2
votes
1 answer

paste data from clipboard using document.execCommand("paste"); within firefox extension

I am trying to paste clipboard data into a variable that gets fed into and fired via XMLhttprequest POST message. I have created a firefox user.js with this code to increase access to clipboard based on this…
2
votes
3 answers

How do I copy a file to the clipboard and paste it somewhere else?

I have a listview with small thumbnails of images. Each image has a tag with it's full path in it. With a rightclick menu the user can click COPY. Then this code is excecuted: Dim selectedfile As String selectedfile =…
Eric
  • 695
  • 9
  • 25
2
votes
0 answers

Clipboard is not getting clear

I have created a android application where i am clearing clipboard in application's onPause method using this code ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); appClipData =…
Indra Yadav
  • 600
  • 5
  • 22
2
votes
1 answer

How do I access the file name (and not just the data) of a pasted file in JavaScript?

Overview When dragging and dropping a file onto a page, you can get the file via event.dataTransfer.files when going through all the drag/drop related events. Each file object then has a name attribute. When pasting a file onto a page, you get the…
2
votes
1 answer

Autohotkey: how to determine clipboard buffer contents size

I have a script that scrapes a certain portion of the screen and acquires about 100-200 bytes long text in to the clipboard. Sometimes, due to web server timeout or missing CSS definitions etc, the page doesn't render correctly and the sane mouse…
MelBurslan
  • 2,383
  • 4
  • 18
  • 26
2
votes
1 answer

File size returned by DataTransferItem.getAsFile() is much larger than original file

I have a png image file of size 1.8 MB. While trying to copy paste the image file in chrome I am using DataTransferItem.getAsFile() method. However the file object returned by the above call is of size ~11 MB. Here is the code snippet: items =…
2
votes
4 answers

How much of the Clipboard API can I use within the Paste event of CKEDITOR?

I'm trying to read the clipboardData attribute of a paste event for a plugin that I'm developing for CKEditor 4. I've established that, in Chrome, if I listen to the document object for a paste event, then the event object I get passed in the…
Angry Dan
  • 3,241
  • 2
  • 21
  • 18
2
votes
1 answer

Copy from clipboard data using javascript in Firefox

I want to use the clipboard data so that I can copy and display the copied data in some html format. Using the "window.clipboardData" I can do this for Internet Explorer and using "event.clipboard" I can somehow solve this problem for Chrome and…
Rupam Datta
  • 1,849
  • 1
  • 21
  • 36
1
vote
2 answers

Notepad++ vertical block select copy paste not retained across clips

I'm using Notepad++ to vertically select and copy blocks of text. Pasting the latest block of text (that is currently in the clipboard buffer) works fine, however going back to the second and third previous clipboard buffers (which were originally…
user78706
1
vote
1 answer

Reading locale info from Clipboard

using .NET Clipboard API you can write following code: //dataObject - instance of IDataObject, received from Clipboard if (dataObject != null) { if (dataObject.GetDataPresent(DataFormats.Locale)) { var data =…
illegal-immigrant
  • 8,089
  • 9
  • 51
  • 84
1
vote
1 answer

How to allow webpage to access clipboard data?

In my asp.net application when i write something in contentEditable div then following pop-up message display: do u want to allow this webpage to access your clipboard? If you allow this, the webpage can access the clipboard data and read…
Sukhjeevan
  • 3,074
  • 9
  • 46
  • 89