copy-paste

vim, any way to copy'n paste, using the mouse, without using shift

I'm used to most X11 apps that copy'n paste with a simple middle mouse key. In vim I must remember to hold the shift key. Is there any way in vim to copy'n paste using the mouse without the shift key? ...

Formatting when copying SQL data and pasting in Excel

I want to copy a sql result set and paste it in Excel. But the data I paste in to the spreadsheet doesn't want to recognize Excel formatting. So if I change a column to currency, it doesn't do anything. But...if I double click on a cell, THEN it applies the currency format. But only to that cell. How can I make it automatically reco...

Cocoa Virtual Keystrokes Pain

I'm writing an application to respond on a hotkey by copying highlighted text into NSPasteboard's generalPasteboard. After looking around here for a solution for sending virtual keystrokes, I found this: http://stackoverflow.com/questions/1505933/how-to-send-a-cmd-c-keystroke-to-the-active-application-in-objective-c-or-tell I tried the ...

How to paste transparent image into flash project

Hi, I've created a short text (a word) in photoshop with the blending options I prefer and now it's all done I would like to paste it into my flash project. The problem is I can't get the text to be transparent in the flash, I always see the white background which is not very nice since the background on which the text will show is actua...

Paste event for a DisplayObjectContainer not registered in AS3

I have a display object container and I am trying to add a paste event to it. But the event is not being registered. The documentation at liveDocs mentions that classes that derive from Interactive objects can dispatch paste event but I dont understand why it wouldnt work for me. My app is not an AIR app, could it be a reason ? ...

Why is it safe to use copy & paste in Flash but not in Javascript?

I'm trying to use copy'n paste in one of my web apps and have read a few articles/SO questions about it. Most people say that using Flash is the only option since most browsers don't allow access to the system clipboard because of security concerns. I can understand this but I wonder why it is okay for Flash do this, but not for the bro...

Not able to copypaste using SetClipboardData in MFC?

I'am using the below code to copy paste..but it doesnt copy the whole context it just copies couple of letters and leave the rest of all as junk value..if I use char* to get the data buffer and change the project settings to Multi byte support...it will work..but then i loose to support the unicode formats and I also tried using CF_UNICO...

Copy from a password field in form

I was designing a form which asks the user to type in a password and then to verify again in the next field. I noticed however, that if I copy and paste from the first password field to the other, the values are not same. It seems my Firefox running on Mac OS X, copies the asterisk graphic instead, which has the value '\x95' Is it poss...

UITextView doesn't support Paste !

Hi , i created persian custom keyboard , my letters type on UITextView , but the UITextView dosn't support paste function ! why ? i don't check the editable option . ...

Jquery prevent dragging of text value

I have a html textbox on which I've bound a function via jQuery to the paste event to prevent users pasting a value into the textbox. This functionality works well. However it is possible to select some text from another textbox on the page and drag it into the textbox in which pastes are prevented. Is there a jQuery event that I can b...

Delete text from copied text

Hello, I would like to use JavaScript to clean up text that’s being copied from my site. I use snippets like this: body { vertical-align: middle; ➊ } Where ➊ indicates comment later on. I want readers to copy this snippet and use it – so I need to delete that Unicode marker. How can I access text that’s being copied and make cha...

Is it possible to copy, paste, open new window in javascript?

At the moment to get to an external link from our intranet, we have to copy the link, and paste the link into a new window. Is there any way we can achieve this in a single function in javascript? Thanks UPDATE: When users login from outside the network, urls are changed. This is what we need to code for. I think I the following is app...

Display any website source code for copy/paste

Hi everyone... I have a website displaying data from MySQL in a php file (/something.php).... i want to copy the source code of that page as HTML so i can use it in a textfield box so users can copy paste that code... It's almost like an HTML generator using info from mySQL, so users can custimize each HTML code. I have everything cov...

Copy Paste vs. Reference

My question is in regard to referencing open source frameworks. There are many of them for many different purposes. I personally leverage several of them in a single project. For example: Unity CAL/Prism ValidationAspects EnterpriseLibrary Logging EnterpriseLibrary Exception Handling EnterpriseLibrary Caching Caliburn All of these fr...

Provide "Paste Link" Functionality in C# Winforms App

I would like to add Copy-Paste Link functionality to an application. The application replaces a complex Excel workbook. I would like to be able to copy tables, text, and charts from the application and use Paste Link in MS Word. For the uninitiated: With Excel, when you use Paste Link for the tables, text, charts, etc. the items updat...

Google Chrome Extensions: How to detect Copy action (Ctrl-C and Edit-Copy)?

How might I detect that a user has selected and copied some content in the currently active tab in a Google Chrome Extension? It appears that there are no suitable Events that deal with the Clipboard in chrome.tabs or chrome.windows. Is there a way to detect such actions through Content Scripts? ...

transforming 1d (1column) into 5d(5column) matrix through copy paste or other

Ex. I want to take the column with 12345..... and order 5 columns across as seen. next 5 numbers in column will be next row. However my code creates a 4 row gap in between each successive row. I dont know what additional logic (possibly if then statement) I can embed into do loop to may make it cleaner. I am new to this, so showing as mu...

iPhone: Getting the Touch Events of Built In "Copy", "Paste" and "Select All buttons"

hello all, I am a newbie in iPhone development. In my project there is one requirement that while editing text the iPhone's built in buttons Copy, Paste and Select all are available. I want the touch event on all these buttons and also want to display an action sheet title upon their respective touch events. ...

Tips on debugging copy and paste into PowerPoint 2010

I have a custom application in C++ that has been used to successfully copy-and-paste an object from the application into MS Office 2003 and 2007 (Word, Excel and PowerPoint). The object opens in our own custom ActiveX control. Now with Windows XP and PowerPoint 2010, nothing happens on the cut-and-paste. I have tried turning off the sma...

is it legal/ethical to use source code provided in academic papers, or talks given at trade events like siggraph?

Is it legal to use source code from papers and such? Like this paper on perlin noise: http://mrl.nyu.edu/~perlin/paper445.pdf Links to this source code: http://mrl.nyu.edu/~perlin/noise/ And Stam's famous talk on fluid dynamics, includes source code throughout, annotated with instructions like "add these macros to the beginning of you...