Все вопросы: [clipboard]

136 вопросов

2
голосов
3ответов
2750 просмотров

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 clipboard text with fixed one. But if I SetDataObject...

0
голосов
3ответов
2490 просмотров

C# - Overwrite Ctrl+C control

Im thinking to create a simple app to store what I have copied using Ctrl+C. Now I have Googled some interesting code: (I will rather post link to it as its huge) http://www.prilepi.com/221 (by http://www.liensberger.it/web/blog/?p=207) http://www.prilepi.com/222 Now the thing works fine, the ...

190
голосов
1ответов
274082 просмотров

How to copy text to the client's clipboard using jQuery?

The workflow is simple: You click inside a textarea. The text is copied to the client's clipboard. Display notice to the user. How do you do it?

6
голосов
2ответов
1968 просмотров

jQuery UI Dialog and Flash in IE

I've been trying to get Zero Clipboard and jQuery UI Dialog to play nice together, and it's proving to be rather difficult. Zero Clipboard allows copying to clipboard from Javascript by placing a transparent Flash movie over a button, so that the user clicks on the Flash when he tried to click t...

6
голосов
1ответов
2190 просмотров

How can I get the standard iPhone Copy bubble to appear on a UIImage?

In iPhoto, I can simply hold my finger over an image to get a "Copy" popup (like the popup you see in text boxes). In my UIImageView's, this is not the case. How can I enable it?

4
голосов
1ответов
2251 просмотров

VC++ win32 API programming: how can I get the image out of the clipboard and display it in a windows?

Use SelectObject() on your memory DC to select the bitmap into it. This makes me puzzled. I read the msdn but still don't know how to fill the second parameter of SelectObject().

1
голосов
5ответов
670 просмотров

How can I make this code work in IE?

There are many tables in my HTML page. When a user hovers on a table, it should be automatically selected(onmouseover event) so that the user can copy(Ctrl+v) it to clipboard. I searched for a way in stackoverflow and ended up with the following code. But it only works in Firefox (window.getSelec...

1
голосов
2ответов
1083 просмотров

Accessing system clipboard in J2ME (Sony Ericsson)

Recent mobile phones have a clipboard where text can be copied from one application to another (E.g. from address book to file manager). Is there an API for placing things on this clipboard? I am targeting Sony Ericsson phones (including G705), so a Sony specific API would be acceptable if no po...

1
голосов
2ответов
1857 просмотров

Why doesn't System.Windows.Forms.Clipboard.GetData/SetData work?

I'm trying to add copy/paste to an application that edits items. Having a copy of the data for a set of selected items, should enable duplicating them or transporting them to another instance of the program. I've tried this: const string MyClipboardFormat = "MyClipboardFormat" private void copy...

201
голосов
2ответов
68251 просмотров

Copy text to clipboard with iOS

What is the best way to copy text to the iPhone's clipboard in your application? Their docs are sketchy and have way more features than what I want... I just want to set a string as the users clipboard.

1
голосов
1ответов
3914 просмотров

iTextSharp - How to generate a RTF document in the ClipBoard instead of a file

I would like to generate a PDF or RTF document using iTextSharp library that can be copied to the clipboard, using the same code I use to generate the document on a file (FileStream). This way my application would give the user two options: generate to a file or to the clipboard.

0
голосов
2ответов
721 просмотров

Terminal Services on Windows Mobile - "Paste" doesn't preserve punctuation?

I have here a Windows Mobile-based PDA (Mobile Compia M3 Sky) equipped with a barcode scanner. This barcode scanner works by reading the data from the scanner into the Clipboard and then simulating a Paste on whatever application is currently running. The problem is, when you're using Terminal S...

6
голосов
2ответов
3062 просмотров

Strangeness with clipboard access

I'm trying to write a small application that needs to use the clipboard for some functionality. Since I don't want to overwrite the user's data currently in the clipboard I decided to save it to memory, do my job and then write it back. The code below is a console application that is a barebones ...

2
голосов
3ответов
540 просмотров

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 command xsel returns the clipboard content, which ...

1
голосов
3ответов
6775 просмотров

How to copy html source of a link to the clipboard and parse as a link in Lotus Notes?

How do you copy the html code of a link to the clipboard and parse it as a link in Lotus Notes? For example, in Javascript put <a href='http://www.stackoverflow.com'>StackOverFlow</a> into clipboard, and then parse it as a link in Lotus Notes while writing a new email. It should only...

0
голосов
1ответов
377 просмотров

Screen Capture Feature Overrides

what i want to do is write an application in C# like "fraps" and other scren capture apps that when you press the "Print Screen" it saves the current screen as an image. What i thought of is that "i could create a background worker thread that checks the clipboard after x seconds and if there ...

1
голосов
1ответов
867 просмотров

How can I access the iphone / ipod clipboard using python?

I want to modify a python application written for the ipod/iphone. It should copy a string into the clipboard so that I can use it in another application. Is it possible to access the iphone clipboard using python? Thanks in advance. UPDATE: Thanks for replying. A bit of background: The python...

0
голосов
2ответов
117 просмотров

Is there a utility to cue up several strings for clipboard pasting (for step-by-step code presentations)?

I was at Apple WWDC in 2008 and all the engineers used some sort of utility to cue up 10-20 lines of code for easy pasting, one at a time. They used this to demonstrate code construction on the fly. It let them avoid having to actually type any Cocoa code in front of the large audiences. I'm loo...

47
голосов
3ответов
65182 просмотров

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.

15
голосов
6ответов
12006 просмотров

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.

2
голосов
3ответов
366 просмотров

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. ...

11
голосов
6ответов
25114 просмотров

Programmatically (C#) convert Excel to an image

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; Fi...

1
голосов
3ответов
552 просмотров

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...

1
голосов
5ответов
286 просмотров

VS2008 copies to clipboard on double-click

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...

33
голосов
3ответов
38227 просмотров

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,...

3
голосов
4ответов
5593 просмотров

Excel copy to clipboard truncating data

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 fo...

1
голосов
1ответов
8671 просмотров

Copy to clipboard using Javascript

Possible Duplicate: How to Copy to Clipboard in 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 seem...

16
голосов
12ответов
32436 просмотров

Selected Rows in QTableView, copy to QClipboard

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 OpenOffice.Calc-Document. B...

0
голосов
1ответов
979 просмотров

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 appl...

17
голосов
2ответов
5102 просмотров

Injecting text when content is copied from a 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-pare...