copy-paste

Selecting text in emacs no-window and using X copy/paste pastes extra spaces

I usually edit text in a terminal using emacs -nw and I notice that when I select a region in emacs -nw and middle-click paste into anything, it copies all the empty characters in the selection as spaces. This also happens if I use the key-binding for Copy and then Paste. For example, if I highlight: [(column-number-mode) ] where...

Set text field value instantly (without emulated typing)

Hi all, I'm using the below command to set a text input value to "some value" however the value isn't set instantly, instead it's set as if it were typed by a user. That's ok for small values, but I'm using this method to insert a big text inside a textarea and I don't want the emulated typing to occur, I would like the value to be set ...

Catch copy/paste of empty text on Windows from AutoHotKey script

Hi, By default on Windows, when copying text, it gets put in the clipboard. But when attempting to copy empty text, the clipboard is untouched. For example, selecting no text in your editor, then hitting ctrl+c, will cause no change in the clipboard. Problem is, I need to catch this event with AutoHotKey. Since the clipboard is unchang...

Paste text on Android Emulator

Is there anyway to (copy)paste clipboard content to EditView on Android Emulator? (just for the sake for ease to development/test) ...

Objective-C Pasting

Hi, I want to write a copy and paste function, however I'd like to know how to paste something. I don't want to paste from the clipboard, I want to paste a string. Any idea how to do this? Help is much appreciated ...

Copy text from TextArea into clipboard using Javascipt on Non-Microsoft platforms

Hi All, I am looking for a javascript function which can copy contents from TextArea into clipboard. On microsoft platform the function works fine, but it fails when I switch to non-microsoft platform such as, FireFox or Safari. I referred this link for the function. If anyone knows the solution for this, please help me out. Thanks ...

How to enable copy/paste formatted text from Lotus Notes to TinyMCE?

This question was previously posted to the TinyMCE HowTo Forum with no responses. Here's hoping that someone out there has encountered (and solved) this issue. The question: Is there some way to enable correct copy/paste of formatted text from a Lotus Notes email directly into TinyMCE? The scenario: A rolling comments system on a web s...

Infinity Loop and user input as the termination

I have my code and it does go run to infinity. What I want is that if on the unix command window if the user inputs a ctrl C, I want the program to finish the current loop it in and then come out of the loop. So I want it to break, but I want it to finish the current loop. Is using ctrl C ok? Should I look to a different input? ...

How do you cut, copy, and paste an extended Tree Node?

I have a c# project using version 4.0 of the .net framework, and running on VS 2010. I have created a tree view populated with some extended tree nodes. I want the user to be able to copy, cut, and paste these nodes to the clipboard via a context menu or keyboard shortcuts (and not just drag-drop). The code runs fine when copying, but w...

How can I accept pastes from the clipboard in my UserControl?

I've got a UserControl that, oddly enough, bundles a bunch of other controls and logic into a tidy little package. It has a Text property that accepts a string and does magic, displaying the results for the user. Awesome. I get that text from a TextBox. The user pastes text from the clipboard in the textbox, which is bound to a DP on...

Format Eclipse code snippets for blog publishing?

Visual Studio has a plugin that allows one to copy code from any editor (C#, HTML, XML) and then paste it with HTML formatting that preserves the syntax highlighting, etc. This is very handy for publishing code samples/examples to a wep page/blog. I have seen one old (2006?) plugin for java to html conversion, but are there any broader ...

Why does Eclipse hang on copy/paste in Javascript files?

I've been running Eclipse Helios 3.6 using the Java/CFEclipse IDEs, and finding some very strange and aggravating errors when trying to edit Javascript files. After the .js file reaches a certain size (~250 lines of code), Eclipse will randomly hang whenever I try to select, copy-paste selections, or save. Clicking after the hang starts ...

NSTextView: How to be notified when user pastes data?

I need to be notified when the user pastes data into an NSTextView in order to strip it of any disallowed data types (url links, etc). I don't want to use NSTextStorageDelegate's textStorageDidProcessEditing: because it is called when the user is just typing. How can I be notified of pastes only? ...

Copying text from a textview

Looking at the source of TextView (Android 2.2 version), it seems that copying from a textview is supported (Source). Anyone know how I can enable this in a TextView? ...

CTRL-A inside a contentEditable div in Firefox selects the div itself

I've been pulling my hair out trying to figure out the best way to fix this problem. Perhaps someone will have fun with this. I have a div with contentEditable="true" that works fine for nearly everything. One exception is inside Firefox when the user uses CTRL-A to select everything and then copies/pastes. The select operation inclu...

Pasting code and keeping the correct aligning

I don't think I'm alone in spending a fair amount of my programming time moving bits of code from place to place, often within the same file. However, in my experience thus far, every time I cut/copy and paste some code I need to manually realign the spacing so that the pasted code is corrected indented and aligned. For example in the ...

Flex LinkButton selectable

Is it possible to make a LinkButton selectable? That is, the text from the LinkButton can be selected and then copied. LinkButton does not have the selectable property. ...

With C# is it possible to put an object on the clipboard that will paste into excel as data and formulas?

In a WPF application, I need to generate data that can be put on the clipboard and pasted into excel. I need to paste something that can carry over data and formulas. I was attempting OpenXML... but I'm not sure that works. I am currently attempting to make raw "Spreadsheet ML" (This is different than OpenXML?) Anyway, if anyone coul...

Mongrel does not shut down using CTRL-C

I am building a Rails 2.3.5 application using Ruby 1.8.7. My development platform is a MacBook Pro running Snow Leopard 10.6.4. Often during development I can not shut down mongrel using the Ctrl-C command in Terminal. It does work sometimes but 8 times out of 10 it does not work. I do not think the Ctrl-C failure is linked to any partic...

How can I insert text into another application?

To scratch a personal itch, I'm writing something like a cross between a character map and an on-screen keyboard. When the user selects a character, I'd like to insert it into another application, specifically, the application that would next receive focus if my application were closed. Is there any way to do this? Right now, I work arou...