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

communicate between Firefox extension and .NET application

I am looking for a better way to pass information between my Firefox extension and .NET application. Currently, I am using text files to pass information one way to the .NET application by using the FileSystemWatcher class. The .NET application…
John Sheares
  • 671
  • 1
  • 12
  • 23
2
votes
2 answers

How to use the clipboard in Go?

How can I copy to the clipboard, or get data from it, using Go? I'm a bit concerned that there are no results in the documentation and Google has yielded me this result, but I want this to work cross-platform... then I found this playground snippet…
Matt
  • 22,721
  • 17
  • 71
  • 112
2
votes
0 answers

Why Swing's clipboard.getAvailableDataFlavors returns fewer options than WinAPI EnumClipboardFormats?

Given the same content in the system clipboard, I run the following snippets: For C++: if (OpenClipboard(NULL)) { for (int i = 0;;) { i = EnumClipboardFormats(i); if (i == 0) break; GetClipboardFormatName(i, buf,…
Qnan
  • 3,714
  • 18
  • 15
2
votes
1 answer

C# SendKeys and Microsoft SQL Server Management Studio 2012 (SSMS)

Solved! See [SOLUTION] Thanks for any help you can provide. It's much appreciated! In a nutshell: I'm trying to send Ctrl+V to SSMS 2012 with SendKeys.Send("^{v}"), but it doesn't work. It's working fine with Notepad, UltraEdit, Word, Excel, Chrome,…
Vinster
  • 21
  • 2
2
votes
1 answer

Can't get non-latin chars from clipboard on c# correctly

I'm developing a dictionary. I'm using this code, to get text from the clipboard. [DllImport("User32.dll")] protected static extern int SetClipboardViewer(int hWndNewViewer); [DllImport("User32.dll", CharSet = CharSet.Auto)] public…
vinsa
  • 1,132
  • 12
  • 25
2
votes
1 answer

How can i copy tmux output to system clipboard?

I want to copy a large section to the file in tmux. Then I enter the tmux vi mode, and copy the selected strings. However, the system clipboard is empty. How can I copy the selected strings to system clipboard? Thanks.
lancerex
  • 1,222
  • 14
  • 12
2
votes
1 answer

Launching copy/paste event not working

[CODE CONTEXT] Hi everyone, I'm working on an application which launch copy or paste event by sending keyboard event to press key C and Ctrl. I'm actually having this method to send Kb event : [DllImport("user32.dll", SetLastError = true)] static…
Marcassin
  • 1,386
  • 1
  • 11
  • 21
2
votes
3 answers

onPostExecute not allowing me to create Toast message

Please see this before for context: Anonymous Uploading File object to Imgur API (JSON) gives Authentication Error 401 (it has the code for doInBackground() method in case anyone is interested) Using an AsyncTask class, I am uploading an image to…
Awais Imran
  • 85
  • 2
  • 4
2
votes
1 answer

Windows CF_DIB to CF_BITMAP in clipboard

I have no practice with windows programming at all, but now I have a problem I want to fix in some program. I need to place an image to windows clipboard and I have raw pointer to valid DIB (device independent bitmap)(in my experiments the dib…
JustAnotherCurious
  • 2,208
  • 15
  • 32
2
votes
1 answer

If Remote Desktop minimize or close c# form application stopped

I wrote a program using c# with form application, using clipboard and capture screen. This program running remote desktop (mstsc). But if I close remote desktop window (not disconnect only close window or minimize window) my program is stopping. I…
manglerman
  • 13
  • 2
2
votes
1 answer

How to Copy Local Storage Image to Clipboard WinRT

I have an application, where user download images to the Local App Storage, it works like this because in order for the application to display content properly we dont want the user to have direct contact with the images and alter them. Now we want…
2
votes
2 answers

zeroclipboard is not working. ZeroClipboard.setMoviePath is not a function

Good day, friends. I can't make zeroclipboard working with my page. In HTML page I have: //Script was loaded successfully. ...
Angrybambr
  • 220
  • 3
  • 10
2
votes
3 answers

How to set HTML Unicode text to clipboard in VC++?

I am a newbie to C++. I want to get the content of the clipboard, which might contain Unicode chars, append a div tag with some content formatted in HTML and set that back to clipboard. I have achieved successfully in getting the content and…
2
votes
3 answers

Modifying clipboard contents on clipboard change

I'm doing this in C#, but, I guess, it isn't language specific problem... I've got some sample code on how to detect when the contents of the clipboard changes. Now I want to modify the text that just got copied (strip some tags) and replace…
flamey
  • 2,311
  • 4
  • 33
  • 40
2
votes
2 answers

How to format rows and columns in clipboard to paste like coming from Excel?

I'm working with a bunch of grids and those grids don't support copying rows and columns with a table layout like Excel does. We need to be able to copy some rows and columns from the grid, and paste them into an Outlook email with decent formatting…
SonOfGrey
  • 241
  • 1
  • 4
  • 18