clipboard

Adding an 'paste screenshot' option to Mantis bugtracker.

We're using the Mantis bugtracker (version 1.1.8), which is based on PHP. To ease the workflow of adding bugs we'd like to add an option to paste screenshots from the clipboard directly into the 'new bug form'. Screenshots make bugreports much more valuable for developers, so I'd like to make adding them as easy as possible. Preferably ...

JS: Get clipboard data

I'm trying to write a Javascript function to edit content from clipboard before pasting. Right now i got bound event 'paste' to function via JQuery. $(this.elementDoc).bind('paste', function(event){ self.OnPaste(event); }); But that's not important. Now i would like to get Data from clipboard, but i can't find out how. I would be g...

How does one change the text on the clipboard without altering the format information?

Another clipboard question: When text is put onto the clipboard, it frequently goes in multiple ways, usually with and without formatting information. What I want to know is this -- how do you change the text on the clipboard without altering the formatting. In other words, I want to change the text side of things, but keep the forma...

Getting Items on the Local Clipboard from a Remote SSH Session

Borderline ServerFault question, but I'm programming some shell scripts, so I'm trying here first :) Most *nixes have a command that will let you pipe/redirect output to the local clipboard/pasteboard, and retrieve from same. On OS X these commands are pbcopy, pbpaste Is there anyway to replicate this functionality while SSHed into ...

Should I worry about putting a large amount of data on the Windows Clipboard?

If you try to close a Microsoft Office application when you've got a ton of its stuff on the clipboard (e.g. a whole word doc), it prompts you to ask if you would like to access that data after the application is closed. In this day and age, does it really matter if I have say 10MB of stuff on the clipboard? As I write my image process...

Can an app use the clipboard for its own purposes? (read: who owns the clipboard?)

In PowerBuilder's IDE, the code autocomplete feature uses the clipboard to communicate the completed text to the code window. By doing so, it overrides whatever was stored on the clipboard before. So, if you had the winning numbers of the next lottary stored on your clipboard, and you used the autocomplete to turn m_goodfor into m_goodfo...

Clipboard Support in Silverlight 3

I'm looking at developing a Silverlight application that displays a lot of information in a DataGrid. I want to somehow give the users the ability to copy this into Excel via the clipboard. Is this even possible in Silverlight 3? ...

Injecting text when content is copied from Web Page

I ran into a a site that injects a "Read More: " line at the end of any text that you highlight and copy from it's pages. I've never seen this before, and without severely digging into their code, I can't find the code that does this. Anyone know how this is done? Example: http://peaceful-parenting.suite101.com/article.cfm/how_to_keep...

WM_DRAWCLIPBOARD multiple messages

I'm working on a small clipboard manager which should remember recent copied text. I'm using Windows system messages for being notified when something has been copied to clipboard by WM_DRAWCLIPBOARD. The problem is some of the applications I use send multiple WM_DRAWCLIPBOARD messages to my application, for instance when I copy somethin...

selected Rows/Line in QTableView copy to QClipboard

Hi. First of all, sorry for bad English. It's about C++ and Qt. I have a SQLite-Database and I did it into a QSqlTableModel. To show the Database, I put that Model into a QTableView. Now I want to create a Method where the selected Rows (or the whole Line) will be copied into the QClipboard. After that I want to insert it into my OpenO...

Copy to clipboard using Javascript

I want to be able to copy text to the clipboard using Javascript. I found the JQuery Copy plugin on the web but this does not work in Firefox (after testing it only IE). I found another one called ZeroClipboard but this seems to rely on Flash player 9 and 10. Is there any other solution that will work in all browsers? ...

Excel copy and paste

I've built a web app which has a paste button for populating a table. The data is originally copied from an Excel spreadsheet and pasted onto my form. The problem is that I'm only seeing the displayed data, not the underlying values. For example, if the cell's value is 12.223 and the cell's format is only showing 12.2, 12.2 goes on to...

How to copy string to clipboard in C?

The SetClipboardData function requires a HANDLE reference; I'm having trouble converting my string for use in the function. Here is my code: char* output = "Test"; HLOCAL hMem = LocalAlloc( LHND,1024); char* cptr = (char*) LocalLock(hMem); memcpy( cptr, output, 500 ); SetClipboardData(CF_TEXT, hMem); LocalUnlock( hMem ); LocalFree( hM...

VS2008 copies to clipboard on double-click

Hello, since some days ago I have a problem with VS2008 in a daily task. Every time I double click a word in the text editor, it goes automatically to the clipboard (as if I pressed CTRL+C after the double-click), which is really annoying. I've googled but I found nothing. I've search through VS2008's options and found nothing. I don'...

transfer text to clipboard that is underlined

I have a program that the user enters some data and then it creates a form letter and copys it to there clipboard Some of the users came back and said they would like some parts of the letter to be underlined to help the people they are sending it to read it easier ( headlines etc) I don't know of a way to mark something as underlined ...

Using Clipboard.GetDataObject() from a .Net worker thread.

Hi; To invoke Clipboard.GetDataObject(), your thread must be running in a single thread appartement (STA). My application uses a lot of asynchronous operation (Begin/End). The completion methods for those operations are called in a worker MTA thread. Once a thread starts running, I can't modify its thread appartement. What are the opt...

Programmatically (C#) convert Excel to an image

Hi, I want to convert an excel file to an image (every format is ok) programmatically (c#). Currently I'm using Microsoft Interop Libraries & Office 2007, but it does not support saving to an image by default. So my current work-around is as follows: Open Excel file using Microsoft Interop; Find out the max range (that contains data)...

Emacs 23 fails to send Unicode combining diacritics through XWin -clipboard

Emacs 23 is running on a remote Linux box. It displays its frame on this local Windows box, using Cygwin's X server. I used to be able to copy-paste any text from Emacs to any Windows application. Since after I upgraded from release 22 to 23, combining diacritics don't come through any more. Non-combined characters pass unharmed. Fo...

How to copy to clipboard with GWT?

Couldn't find anything on this with a Google Search. Does anyone know how to copy some text to the clipboard through GWT Java code? I'd like to avoid the raw javascript injection solution. Any help or pointers appreciated. ...

Clipboard size limit

Is there any limit of the size of data that can be copied to clipboard? I am using VB6 and need to copy blocks of data to the clipboard. ...