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
0
votes
1 answer

How to copy multiple items to clipboard history in c#?

I'm using the clipboard class from Win API (Windows.ApplicationModel.DataTransfer.Clipboard). When I try to copy multiple items one by one to the clipboard history, it gets overwritten by the recent item. I want to store every item I copy onto the…
Wes
  • 1,847
  • 1
  • 16
  • 30
0
votes
0 answers

How to select the textContent of copy event and how to use it before doing copy event?

How can I select textcontent before it is copied to the clipboard? Here is an idea of selecting with one click: https://stackoverflow.com/a/1173319. But this is an other code with id selector. I only want to select textcontent with a class before…
user8652270
0
votes
1 answer

How to edit paths in Windows clipboard?

When pressing "Ctr+C" while selecting some files in the explorer, their paths are saved in the clipboard and when later pressing "Ctr+V" the files are pasted. For an AutoHotkey script I need to edit these paths in the clipboard, so the explorer…
0
votes
0 answers

error TS2304: Cannot find name 'ClipboardItem'

Getting the error error TS2304: Cannot find name 'ClipboardItem' when trying to create ClipboardItem for navigator.clipboard.write(). const clipboardItemInput = new ClipboardItem({'image/png' : blobInput}); await…
TTT
  • 11
  • 4
0
votes
2 answers

How to paste the clipboard content automatically in my webpage

I would like to have the clipboard content of the client pasted automatically into a textarea the moment he opens the URL. I couldn't even manage to do it onclick and have searched everywhere with no result. This is one of the versions I…
Jimmy
  • 25
  • 1
  • 4
0
votes
1 answer

Rename a file which comes from a copy/paste (on server side or front side)

In a textarea, people can paste pictures. I handle that with AngularJS, the ng-paste directive and this piece of code ctrl.handlePaste = function(event) { if(event.clipboardData.items.length > 0) { for(var i = 0; i <…
Valentin Coudert
  • 1,759
  • 3
  • 19
  • 44
0
votes
2 answers

Uncaught TypeError: item.getData is not a function

I want to paste the clipboard content on html page. The content is copied from an ms-word file. Contains text and images. Consider the following code: