copy-paste

How to get the value of a field during the paste event?

I have a text field that I'm binding the paste event to using JQuery. When I first paste something into the form field and log its val() it returns a blank string. Likewise, if I paste again into the field, it returns the previous value before pasting. Essentially I have a race condition or sequencing issue, for lack of a better term....

Visual Studio Alt-Copy in Eclipse

Visual Studio has the ability to copy arbitrary blocks of text (not across lines) by holding the alt-key...Is there anything similar in Eclipse? Thxs. ...

Paste email subject & body into my iPhone app.

I would like users to be able to paste a whole email into my App via a single copy operation. The default iPhone email app just seems to copy the body-text of the email (to be expected I suppose). Does anyone know if the email app places the from: to: subject: and body: text into another more specialized PasteBoard during a user copy re...

Capturing Ctrl-c in ruby

I was passed a long running legacy ruby program, which has numerous occurances of begin #dosomething rescue Exception => e #halt the exception's progress end throughout it. Without tracking down every single possible exception these each could be handling (at least not immediately), I'd still like to be able to shut it down at ...

Implementing iphone's copy/paste controls on a custom view / uiview subclass

I will admit that there is already a question exactly along these lines here on S.O., but it lacks implementation details, a working answer, and I would like to be more specific, so I think a new question is in order. Obviously, let me know if I'm wrong and we can try to restart the thread over there. Basically, I want to copy the text ...

Progam can't see file but it exist. FileNotFoundException

So, I'm writing FTP server-client but the code can't read any file. I mean. I have a file at Downloads. Let's say /Downloads/supplement2.pdf but I get a FileNotFoundException. Even though the file is there and I can see it. I even made a test folder and set it's privilages to 777. Still, nothing. Is there a way to set what netbeans does...

copying column information automatically into a second sheet, accounting for new rows

This query is probably very simple but I am not experienced enough to adapt the macros I have seen here. I have two worksheets, and I need to mirror several columns from one worksheet into another one at each start up, accounting for additions of rows that may have been made in the first worksheet and also showing these in the second. ...

Eclipse: stack or pile for cut & copy & paste?

hi there im just wondering as I couldn't find an answer on google (well, maybe Ive been trying the wrong keywords here >.< )... A thing I've always dreamt about was a stack/pile cut feature which remembers the - uhm, lets say - 10 last things I've cut out or copied for pasting... Is there such a feature and if so, what is it called? fur...

How can I emulate key press with copy & paste in an Infragistics UltraWinGrid?

I am using the Infragistics UltraWinGrid (version Win 9.1). The default behavior is to allow the user to type text into a cell. When one copies multiple cells from an Excel spreadsheet, only the first cell's data will be pasted into the UltraWinGrid. One can easily change the behavior to paste multiple cells by setting the UltraWinGrid ...

Is there a way to capture x-browser paste events in mootools?

I want to capture when a user pastes data into a text input field using mootools event system. Anyone have experience of this? ...

limit how many characters can be pasted in textarea

Is it possible to detect how many characters are being pasted into a HTML textarea, and cancel the paste if beyond a limit? Edit: what I am trying to do is prevent the user pasting a massive amount of characters (~3 million) because it crashes some browsers. So I want to cancel the paste before their browser locks up. I am making a docu...

VBA How do you copy and paste in a Userform using right-click?

I want to allow users to be able to paste values into TextBoxes in a userForm in VBA. You can use Ctrl-v just fine, but not everyone knows how to do that. How do I enable copy and pasting using a right-click menu? ...

Can I get copy/paste functionality from a C# Console Window?

I am developing a console application in C#, and was wondering if there was a way to get the "copy-paste" or "mark-paste" functionality into my application, similar or identical to that of the standard Windows command prompt. Is this a wild goose chase or a simple application variable? ...

Anyone know how to stop Visual Studio 2005 editor formatting inserted text on a paste operation?

I grow tired of carefully hand indented multi-line function arguments or logic statements being reformatted on cut/copy - paste operations. i.e. code that started out like LPCTSTR FoldersToIgnore[] = { _T("_Disk"), _T("_Storage Card"), _T(".Production-Archive"), ...

To take events on pasting some texts on text area

Hii, I have to take the paste event of a text area using JQuery. I have tried the following code but it is not working... $(document).ready(function() { $('#txtcomplaint').keyup(function() { TextCounter('txtcomplaint','counterComplaint', 1000 ); }) $('#txtcomplaint').onpaste(function() { alert() //TextCou...

Copy Paste is Disabled in Property Grid

Hi All, I have a FileNameEditor inside a property grid, which has a few entries like Main File : "C:\blah1" Sec File: "C:\blah2" and so on. My problem is that I cannot copy and paste from one property entry to another, and I cannot type in the fields manually as well. Is there a specific property that will enable editing inside the...

How to prevent a file being copied or cut in windows file system?

I want that an exe file can't be copied or cut from the Windows file system to paste somewhere. The exe is made in C#. which must have to be in only one PC. I have worked with FileSystemWatcher, NSIS, Clipboard. but for all I need to detect whether that file is being copied. I also have seen 'Prevent'(http www free-download-blog.com d...

Java: Cut item from JTree with lazy-deleting

I've implemented Drag'n'Drop and CCP on my JTree (I've created my Transferable and TransferHandler classes). By default Cut action (CTRL-X or SHIFT+DELETE keys) delete item from JTree (JTreeModel), but I want just to mark it with gray color and delete it only after Paste action. How could I make Cut action to avoid deleting items? I d...

How do you copy and paste into Git Bash

I'm using msysgit running on Windows XP. Tried Ctrl+V, Right click, Middle click, google... no luck. ...

How can force copy selected text ? [iPhone]

Hi~ I have one question. ^^ How can i get "selected text" on UIWebView (or UITextView) ? I'd like to copy "selected text" without copy/paste popup-view. 1) i removed ... copy/paste view. ( it was success~ ) UIMenuController *theMenu = [UIMenuController sharedMenuController]; [theMenu setMenuVisible:NO]; [theMenu update]; 2. forced ...