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
3 answers

Android- Code to Copy and Paste desired string from Text view using ClipBoard

Need to select the text from text view to desired range and do copy.I tried using onClick Listener on Text view and also i added android:textIsSelectable="true" at xml @Override public void onCreate(Bundle savedInstanceState) { …
SARA
  • 21
  • 3
2
votes
2 answers

Does iPhone have a clipboard API?

Does iPhone have a clipboard API? It seems one can call an API function to set text to the pasteboard which will be accessible by other apps., but can someone verify that this is correct? Thanks.
bhartsb
  • 21
  • 1
  • 2
2
votes
4 answers

Send selected text to a command line argument

I found this utility, pytranslate, which translates a variety of languages into each other using Google's translation API. It works exactly as described. However I've gotten sick of selecting a word I do not understand, then middle-clicking it into…
torger
  • 2,308
  • 4
  • 28
  • 35
2
votes
1 answer

Using Clipboard Copy Paste in Excel (VSTO code) freezes other Microsoft Office application

Operating System : Microsoft Windows SP1 (64 bit) Office Suite : Microsoft Office 2010 .Net Framework : 4.0 Subject : Microsoft suites of applications (Word, Outlook) does not respond for the time slice when a excel plugin code is running Details :…
2
votes
1 answer

Android copy/paste menu immediately closes

How can I make the copy/paste clipboard menu overlay my activity layout rather than squishing it down? This is a problem because once the layout is pushed down the user's finger is no longer touching the EditText view, so the clipboard menu…
d2vid
  • 2,014
  • 1
  • 22
  • 25
2
votes
0 answers

Beep when copying nothing in Chrome (Multiple Clipboards Win+Number)

I made this simple script that allows me to have multiple clipboards. By selecting some text and pressing Win+1, the text is copied in Clipboard1. If I don't have text selected, the contents of the clipboard are pasted. The same for Win+2 and 3. It…
2
votes
1 answer

Select and Copy text in WPF Textbox using MVVM

I've found this question which helps me achieve part of what I want to do: MVVM- How can I select text in a textbox? My first problem is that I have two text boxes, with a "Select All" button for each, but I can't work out how to adapt the accepted…
Andy
  • 3,600
  • 12
  • 53
  • 84
2
votes
1 answer

Is the clipboard shared between desktops under Windows?

MSDN says: A window station contains a clipboard, an atom table, and one or more desktop objects. According to above, both of the winlogon desktop and the current desktop are belong to WinSta0; so they should share the same clipboard of…
xmllmx
  • 39,765
  • 26
  • 162
  • 323
2
votes
1 answer

How can I paste an image from the clipboard onto a Canvas element using Dart?

I'm using Dart to develop a personal whiteboard Chrome app and it is sometimes useful to be able to quickly copy and paste an image (e.g. a slide from a presentation, a diagram or a handout) so that I can add notes over the image while teaching a…
Richard Ambler
  • 4,816
  • 2
  • 21
  • 38
2
votes
1 answer

How to paste clipboard contents to a file?

I can successfully copy the text to the clipboard and new file is also being created at the specified path but data being pasted is wrong.This data is being pasted (File:0x1ff09c8) I also tried using 'win32/clipboard' but was getting a error 'can't…
The Rookie
  • 595
  • 9
  • 26
2
votes
3 answers

Paste image from clipboard

I'm trying to paste image from clipboard in my website (like copy and paste). Appreciate if anyone could advice on this. Can I achieve this using HTML 5 or applet or any way. Any advice or any link for reference is highly appreciated.
chinna_82
  • 6,353
  • 17
  • 79
  • 134
2
votes
1 answer

OnPrimaryClipChangedListener not working

This is my code for implementation of OnPrimaryCLipChangedListener: public class PrimaryClipChangedListener implements OnPrimaryClipChangedListener { @Override public void onPrimaryClipChanged() { // TODO Auto-generated method stub //…
Rajath S
  • 169
  • 1
  • 14
2
votes
1 answer

Copy Paste UIElement (FrameworkElement)

I have a Designer exactly how is the VisualStudio WinForms designer. I drag & drop there controls (FrameworkElements) (from a ToolBox with controls). Controls are stored into a Grid Panel. Actually I'm going to implement the Copy/Paste…
mihai
  • 2,746
  • 3
  • 35
  • 56
2
votes
3 answers

how to swap clipboard content with selection upon keyboard shortcut

I'd like to exchange the currently selected text in eclipse (or even any program) on linux with the content of the clipboard when pressing a shortcut like Ctrl-B. Any ideas? A similar question has been posted here regarding Visual Studio but…
user829755
  • 1,489
  • 13
  • 27
2
votes
1 answer

Copy as html to clipboard programmatically

My problem is that user could get html copied to his clipboard without selecting it manually and Ctrl + C. The problem is that all plugins i tried (zClip, ZeroClipboard) copy just plain text. And then if i paste it into the Microsoft Word for…
Romko
  • 1,808
  • 21
  • 27