Questions tagged [clipboard]

The clipboard is a software facility that can be used for short-term data storage and/or data transfer between documents or applications, via copy and paste operations.

It is most commonly a part of a GUI environment and is usually implemented as an anonymous, temporary block of memory that can be accessed from most or all programs within the environment via defined programming interfaces. A typical application accesses clipboard functionality by mapping user input (keybindings, menu selections, etc.) to these interfaces.

The semantics of the clipboard facility varies from one operating environment to another, and can also vary between versions of the same system. They can sometimes be changed programmatically or by user preference. This can lead to user frustration when switching between environments with different clipboard semantics particularly as copy and paste operations often become embedded in the user's muscle memory.

Most environments support a single clipboard transaction. Each cut or copy overwrites the previous contents. Normally, paste operations copy the contents, leaving the contents available in the clipboard for further pasting operations.

http://en.wikipedia.org/wiki/Clipboard_(software)

4050 questions
115
votes
19 answers

Copy / Put text on the clipboard with FireFox, Safari and Chrome

In Internet Explorer I can use the clipboardData object to access the clipboard. How can I do that in FireFox, Safari and/or Chrome?
GvS
  • 52,015
  • 16
  • 101
  • 139
112
votes
8 answers

How to add extra info to copied web text

Some websites now use a JavaScript service from Tynt that appends text to copied content. If you copy text from a site using this and then paste you get a link to the original content at the bottom of the text. Tynt also tracks this as it happens.…
Keith
  • 150,284
  • 78
  • 298
  • 434
110
votes
11 answers

Copy output of a JavaScript variable to the clipboard

I have no knowledge of JavaScript, but I managed to put this code together using bits and bolts from various Stack Overflow answers. It works OK, and it outputs an array of all selected checkboxes in a document via an alert box. function…
harman
  • 1,685
  • 2
  • 15
  • 14
107
votes
6 answers

Paste an image from clipboard using JavaScript

How do we paste an image from clipboard into a custom rich text editor using javascript? (ctrl+c and ctrl+v or a snapshot). Has anyone used Ajax's rich text editor? Does pasting an image from clipboard to Ajax RTE work?
kani
  • 1,069
  • 2
  • 8
  • 6
107
votes
4 answers

What exactly is "label" parameter in ClipData in Android?

According to the Android documentation, ClipData use "label" as a kind of representation to the copied data. ClippedData is a complex type containing one or Item instances, each of which can hold one or more representations of an item of data. For…
hackjutsu
  • 8,336
  • 13
  • 47
  • 87
99
votes
10 answers

How do I monitor clipboard changes in C#?

Is there a clipboard changed or updated event that i can access through C#?
Sevki
  • 3,592
  • 4
  • 30
  • 53
95
votes
9 answers

How to make copyable Text Widget in Flutter?

When long tab on Text widget, a tooltip show up with 'copy'. When click on the 'copy' the text content should copy to system clipboard. The following will copy the text on long tap, but does not show up 'copy', so user will not know, the content is…
Kyaw Tun
  • 12,447
  • 10
  • 56
  • 83
92
votes
8 answers

Copy to clipboard without Flash

I found many solutions for copying to the clipboard, but they all either with flash, or for websites side. I'm looking for method copy to clipboard automatically, without flash and for user side, it's for userscripts and of course cross-browser.
Black_Sun
  • 921
  • 1
  • 6
  • 7
89
votes
14 answers

Copy to clipboard using Javascript in iOS

I'm using this function to copy a URL to the clipboard: function CopyUrl($this){ var querySelector = $this.next().attr("id"); var emailLink = document.querySelector("#"+querySelector); var range = document.createRange(); …
Nino Amisulashvili
  • 903
  • 1
  • 7
  • 7
88
votes
11 answers

OpenClipboard failed when copy pasting data from WPF DataGrid

I've got a WPF application using datagrid. The application worked fine until I installed Visual Studio 2012 and Blend+SketchFlow preview. Now, when I'm trying to copy the data from the grid into the clipboard with Ctrl + C (in any application), I'm…
Arsen Zahray
  • 24,367
  • 48
  • 131
  • 224
87
votes
3 answers

Clipboard API call throws NotAllowedError without invoking onPermissionRequest()

I have a simple page with a button, that when pressed, uses the Async Clipboard API to write to the clipboard. function testClipboard() { …
cyqsimon
  • 2,752
  • 2
  • 17
  • 38
87
votes
1 answer

What is difference between Vim's clipboard "unnamed" and "unnamedplus" settings?

What is the difference between these 2 settings? set clipboard=unnamed set clipboard=unnamedplus Which one should I use in order to have multi-platform .vimrc?
syntagma
  • 23,346
  • 16
  • 78
  • 134
87
votes
13 answers

How do I copy and paste data into R from the clipboard?

I have my data open in another application (e.g. a spreadsheet, like Excel, or a text editor). If I copy that data to my operating system clipboard, how can I read it into R as a data.frame?
Moderat
  • 1,462
  • 4
  • 17
  • 21
81
votes
5 answers

Copying to the clipboard in Java

I want to set the user's clipboard to a string in a Java console application. Any ideas?
clone1018
  • 1,207
  • 2
  • 10
  • 13
71
votes
6 answers

.Net Core - copy to clipboard?

Is it possible to copy something to the clipboard using .Net Core (in a platform-agnostic way)? It seems that the Clipboard class is missing, and P/Invoking isn't an option outside of Windows. Edit: Unfortunately until now there's been a…
Matt Thomas
  • 5,279
  • 4
  • 27
  • 59