copy-paste

How to paste data from Excel into cxGrid

时光怂恿深爱的人放手 提交于 2019-12-23 01:20:31
问题 I have a Delphi application using DevExpress cxGrid (which is connected to database). I require to be able to copy-paste data from Excel into the grid. Is this possible? If so, how to do it, which additional components do i need? 回答1: Check the format with Clipboard.HasFormat(CF_TEXT) . Extract the text with Clipboard.AsText . Split into rows with StringList.Text := Clipboard.AsText . Each item in the string list is now a row from the clipboard. Split each row into individual cells using a

python3: how to use the press Ctrl+X (cut) and Ctrl+V using pynput?

让人想犯罪 __ 提交于 2019-12-22 18:41:09
问题 following pynput documentation I tried this to "cut": 1: select some text in an editor 2: run this_code.py using a shortcut (without leaving the active windows) from pynput.keyboard import Key, Controller keyboard = Controller() with keyboard.pressed(Key.ctrl): keyboard.press('x') keyboard.release('x') The python console open actually print: ^X. The combination of keys are right but it doesn't do what it's suppose to do: cut the selected text store it in the clipboard. (I'm not interested to

Copy and paste data from multiple workbooks to a worksheet in another Workbook

故事扮演 提交于 2019-12-22 16:43:29
问题 I hope you can help. I currently have a piece of code see below. What I would like it to do is allow a user to select folder that contains workbooks. Then open each workbook select a sheet named "SearchCaseResults" from each workbook copy the data from each "SearchCaseResults" from the 2nd row down to the last used row, and paste this data into a worksheet called "Disputes" located in a different workbook in another folder. So in PIC 1 you can see three Workbooks England, England_2 and

VBA Filter Table and Copy Subset of Resulting Columns to Clipboard

早过忘川 提交于 2019-12-22 14:15:47
问题 I am trying to automatically copy a subset of rows and columns from a source table into the clipboard for use in other applications. I am creating the filter on the header of the table and filtering the rows correctly but do not know how to then select the subset of columns in the order I want. The source table is Columns A - L and I want to copy out Columns C, I, H and F in that order to the clipboard after applying the filter. Some code (minus the copy part) is included below. Sub

Function Undefined error in JavaFX application

China☆狼群 提交于 2019-12-22 09:59:36
问题 The requirement was to embed a JSON editor in a javafx application. I tried embedding the json editor(powered by Ace) https://github.com/josdejong/jsoneditor into my javafx application with the help of webview. Everything is working except copy(CTRL+C) and paste(CTRL+V). After a research, I came to know that javafx webkit is of safari . But I tried the same editor in web browsers like firefox, chrome and all. Even in latest version of safari it is working well, but I failed to get it working

How to copy text together with the line numbers using Sublime Text

半腔热情 提交于 2019-12-22 04:35:09
问题 I would like to copy text but with the line numbers in front. How to do it? I would like to paste that text after that, with the line numbers in front. 回答1: Install Copy With Line Numbers Reloaded Select the text you want to copy Run Edit: Copy With Line Numbers from the Command Palette Paste @ your target document & your code will now have line numbers 来源: https://stackoverflow.com/questions/36992564/how-to-copy-text-together-with-the-line-numbers-using-sublime-text

Shortcut for copying Ctrl-C not working in Android Studio

依然范特西╮ 提交于 2019-12-21 17:21:32
问题 I am able to copy text from other programs and paste it to Android Studio. I am able to right click and copy selected text. I am able to cut text and paste it using shortcut. But while using shortcut Ctrl + C to copy text I am often unable to copy. This is very annoying problem. Does anyone here knows how to solve it? 回答1: If restarting AS does not resolve the issue you could try Invalidate Caches/Restart option. That sometimes fixes such issues. ----update---- This might fix your issue. 回答2:

Paste image to a web page

断了今生、忘了曾经 提交于 2019-12-21 12:42:12
问题 I did some research for a wysiwyg editor and found ckeditor that seems to be nice however I need to be able to copy/paste an image to the editor. I found this web site that do exactly what I need http://pasteboard.co/ so its possible however I cannot find how it's done. Do you have any ideas or solutions? I would prefer a solution in pure html5/javascript and avoid any plugin but a silverlight or flash is acceptable too. 回答1: There are two ways you can handle this, the easy way, and the hard

Tips to show similarities in files

我是研究僧i 提交于 2019-12-21 04:13:04
问题 In a project, I found some css files that "smell" like there are copy-pasted rules in them. I wonder what are your strategies for detecting copy-paste stuff in files. Just of curiosity i'd like to hear your tips and tricks for showing file similarities! 回答1: Try Simian. It is used for copy-paste-detection in source code (Java, C#, C, C++, COBOL, Ruby, JSP, ASP, HTML, XML, Visual Basic, Groovy), but you can run this on plain text files too. 回答2: There is a Copy-Paste Detection (CPD) project on

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

浪子不回头ぞ 提交于 2019-12-20 20:31:09
问题 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. It seems the form field will not update until the paste event completes. Is there any way to check the value of the field after the paste event has completed