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

Read blob as data url in JavaScript

I'm making a paste image from clipboard function then I need to convert blob data to base64 encoded data url, here's the code: function handlepaste (event, e) { var items = e.clipboardData.items; event.innerHTML = items[0].getAsFile(); …
jk jk
  • 1,027
  • 2
  • 13
  • 28
2
votes
1 answer

Comparing IDataObject from the Clipboard

My WPF application checks the data on the clipboard to see if it can work with the data or not. Because I set some buttons to be enabled/disabled based on the data (via an ICommand implementation), this code is called frequently. The work to…
Brian Ball
  • 12,268
  • 3
  • 40
  • 51
2
votes
2 answers

How to tell if my application has been removed from the clipboard listener chain?

I am writing a small utility application to monitor my clipboard. This at current works quite well, but a friend has told me that it randomly will stop showing alerts upon clipboard change, and that restarting fixes it. I couldn't reproduce, but…
Steffan Donal
  • 2,244
  • 4
  • 24
  • 47
2
votes
1 answer

How to execute lines of text on the clipboard as bash commands

I'm working with Mac OS X's pbpaste command, which returns the clipboard's contents. I'd like to create a shell script that executes each line returned by pbpaste as a separate bash command. For example, let's say that the clipboard's contents…
scolfax
  • 710
  • 2
  • 6
  • 17
2
votes
1 answer

Why Won't this Clipboard Code Pass Mozilla Validation?

Salve! When I try Mozilla's Validator on my addon, it get the following error related to my treatment of clipboard usage: nsITransferable has been changed in Gecko 16. Warning: The nsITransferable interface has changed to better support Private…
bgmCoder
  • 6,205
  • 8
  • 58
  • 105
2
votes
1 answer

Scripted access to Linux clipboard from terminal

I'm using a terminal emulator (MATE, to be exact) running on Linux Mint, which is running in a VM hosted by Windows. I'm connected to a bash shell on CentOS Linux via ssh. I'm not using X-anything. I am able to copy and paste, using the mouse,…
Chap
  • 3,649
  • 2
  • 46
  • 84
2
votes
1 answer

How to implement seamless clipboard between Explorer and TcxShellListView?

I have an application that mimics Windows Explorer, it uses a TcxShellListView amongst other shell controls. A really nice feature would be to be able to Copy & Paste and Cut & Paste files between the real Windows Explorer and my application. Drag &…
Jens Mühlenhoff
  • 14,565
  • 6
  • 56
  • 113
2
votes
0 answers

pd.read_clipboard() seg fault

I cannot seem to use read_clipboard(). I have tried copying some of my data, the example data in the docs, and finally just the number 1. As you can see: In [1]: %paste 1 ## -- End pasted text -- Out[1]: 1 In [2]: pd.read_clipboard() Segmentation…
Dan Allan
  • 34,073
  • 6
  • 70
  • 63
2
votes
1 answer

Minimal implementation of Gtk.Clipboard not functional

I am trying to get a minimal implementation of Python3/GTK3's clipboard working. It will work if and only if I run Gtk.main(). I have even tried: While Gtk.event_pending(): Gtk.main_iteration() Without it working. If I run the script with…
narnie
  • 1,742
  • 1
  • 18
  • 34
2
votes
2 answers

How to lock clipboard or avoid using it in MS Excel?

I'm writing a program under Excel that generate a lot of spreadsheets by copying / pasting some data from one worksheet to another (example: using a "Layout" worksheet with some header / footer cells which will be copied/pasted to the generated…
Alexxx
  • 766
  • 1
  • 11
  • 19
2
votes
2 answers

Range.ClearContents clears the system clipboard - workaround? (VBA/Excel)

Problem A dataview sheet I'm working on regularly wants to reset the contents of parts of the view (to be blank). Historically, we've had problems with users saying this sheet clears their system clipboard. It looks like there's a problem with using…
jelford
  • 2,625
  • 1
  • 19
  • 33
2
votes
2 answers

Clipboard transfer between apps

Mysterious clipboard issue: I have an application under development that launches an external application (as a System.Diagnostics.Process object) which is expected to copy some data (text) to the clipboard. When the external app closes, the client…
haughtonomous
  • 4,602
  • 11
  • 34
  • 52
2
votes
1 answer

Why is my clipboard listener being called twice/application opened twice?

I Wrote a short program in C# that monitors the clipboard. When a certain string enters the clipboard, a program must be opened with Process.Start (depending on the string). Everything works fine, but sometimes the application is being opened twice.…
user1875543
2
votes
3 answers

command substitution but without breaking output into multiple arguments

Is there a way to do command substitution in BASH shell without breaking output into multiple arguments? I copy the path of some directory (from the location bar in a GUI file browser) to clipboard and then issue the following command, where the…
Yoo
  • 17,526
  • 6
  • 41
  • 47
2
votes
3 answers

Right Click Menu Items for System Clipboard Operations

I've discovered that when running a Java program in Mac OS X, text field objects (e.g. JField) support cut, copy, and paste operations using the system clipboard if you use the key commands without you having to do an extra coding. For instance, I…
Thunderforge
  • 19,637
  • 18
  • 83
  • 130