There are two ways to implement the menu function:
First:Send a key to the applicationProgram.
First, focus on the current active RichTextBox, and then send a shortcut command to implement the operation function.
Richtextbox1.focus (); sendkeys. send ("^ A"); // select all sendkeys. send ("^ C"); // copy sendkeys. send ("^ X"); // cut sendkeys. send ("^ V"); // Paste
Method 2: using commands to oper
Let us know this through the following experiment:
1. The computer has a 23G two 3D movie "Avatar" and "Dragon Tamer".
2. Copy the two films to a mobile hard disk dedicated to the purchase of the movie, directly connected to the TV broadcast.
3. Because 3D film occupies a large space, all xiaoming do not want to keep in the original computer, and the use of cut paste to the mobile hard drive.
4. In this
Ext: http://www.cnblogs.com/JuneZhang/archive/2011/05/20/2051973.html
There are two main ways to implement this menu:
First: implemented by sending keystrokes to the application.
First focus to the currently active RichTextBox, and then by sending the keystroke command to implement the Operation function
Richtextbox1.focus ();
Sendkeys.send ("^a")/Select All
Sendkeys.send ("^c");/copy
Sendkeys.send ("^x");//
In some applications, sometimes when we submit important information such as the Form Content (password), to ensure security, we need to prevent some copy, cut, and paste events, today I made a simple example about blocking copy, cut, and paste events:
CopyCodeThe Code is as follows:
Content directory: Find file lookup grep text Search xargs command line parameter conversion sort sort Uniq eliminate duplicate rows with TR convert cut by column split text paste by column stitching text WC statistic lines and characters tool sed text substitution benefits The lines, words, and characters in the iteration file for the AWK Data flow processing tool
This article describes the most commonly u
in a place to paste in. Say:1. v+ move cursor to select text.2, y can copy the selected text3, p can be pastedCopy one line: yyCopy the current cursor position to the end of the line: y$Copy the current cursor position to the beginning of the line: y^Copy three lines: 3yy, that is, from the current cursor + the next two lines.Cut text:You can press Y to copy after selecting the text with V, and then press p to pa
Reprinted from: http://www.cnblogs.com/luosongchao/p/3193153.htmlProblem Description:Select the specified character in vim to copy/cut/pasteSelect:1, Normal mode--v+hjkl to choose.2, the Visual Line mode button V can enter only to select the rowAfter pressing V, enter visual line mode and use the J/K key to select one or more rows3. Visual block mode, press CTRL + V to enterAfter pressing CTRL + V, enter the visual block mode and use the J/K/H/L key t
工欲善其事, its prerequisiteIn a Web page developed by ASP, it is sometimes necessary to prevent users from pasting the copied password and to prevent the user from copying the article directly into the text box. The way to do this is to write code that prohibits pasting text directly where the control is restricted. However, this is not very convenient, if a page has 5 TextBox control, this time must be separate for each control is written to prohibit copy, past
Summary:Recently on the project to achieve a Click Button Copy link function, just started to find some information, find a few plug-ins, Zeroclipboard is through the flash implementation of the replication function, with more and more proposals to abolish flash, so I would like to be able to achieve copy cutting by JS?Address: Https://github.com/baixuexiyang/clipBoard.jsMethod:Copyvar new ClipBoard (document.getElementById (' Data '), { function() { }, function () { return docu
Nonsense not to say, directly on the code, the small friends carefully read the note.
Copy Code code as follows:
/* Simple copy-cut-paste feature
Operation:
Copy test: Input text Select text, click Copy, then place the cursor on the right textarea, click Paste
Cut Test: Enter text select text, then plac
Currently, you can use jquery. on ("copy cut paste", handlerfn) Capture. the setTimeout method is used on the Internet to obtain all the values after the input box is pasted;
The sample code for setTimeout is as follows:
$ ("Input "). off ("Paste "). on ("Paste", function (e) {setTimeout (function () {var val = $ (this
5.1 Vim Introduction 5.2 Vim color display and move cursor
5.3 Vim General mode move cursor
5.4 Vim General mode copy, cut and paste
Vim is an upgraded version of VIVim with color displayInstalling Vim:yum install-y vim-enhancedVim is divided into three modes: General mode, edit mode, command modeGeneral mode: DD,YY,PP,Edit mode: I,a,Command mode: q,wq! , Q!,set Nu,set Nonu;nohl (no highlight n
In a Word 2010 document, users can use the smart cut and paste feature to set more advanced paste options. The steps to use and set up the smart cut and paste feature are as follows:
Step 1th, open the Word 2010 document window, and click the file → options button, as shown
The copy, cut, and paste operation is the most common text operation in Word2010, where the copy is placed on the clipboard on the basis that the original text remains unchanged, and the cut action puts the selected text on the Clipboard on the basis of deleting the original text; The paste operation places the content
Alt-Backspace: cut the text from the cursor to the header. If the cursor starts with a word, cut the previous word
Cursor movement command
Ctrl-A: Move the cursor to the beginning of the line.
Ctrl-E: Move the cursor to the end of the row.
Ctrl-F: Move the cursor one character forward.
Ctrl-B: Move the cursor one character backward.
Alt-F: Move the cursor forward a word.
Alt-B: Move the cursor backward.
Ctr
In some applications, sometimes when we submit important information such as the Form Content (password), to ensure security, we need to prevent some copy, cut, and paste events, today I made a simple example about blocking copy, cut, and paste events: lt ;! DOCTYPEhtml gt; lt; html gt; lt; head gt; lt; metachar
Linux under the VI Editor for simple paste copy cutting function
If you want to paste the third line in the file into line 15th:1. Enter your file (in command mode, not edit mode)2. Move your cursor to the beginning of your third line (with the arrow keys)3, press V, (you find switching to Visual mode), press the arrow keys, know what you want to select4. Press Y, and then move the cursor to the end of
When submitting the form content such as (password) important information, to ensure security, you need to prevent some copy, cut, and paste events. We will share with you an example below, if you are interested, you can refer to the following: in some applications, sometimes when we submit important information such as the Form Content (password), to ensure security, we need to prevent some copy,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.