clipboard

Mechanism of clipboard of xwindow

做~自己de王妃 提交于 2019-12-18 06:53:54
问题 Can anybody explain the mechanism of clipboard of xwindow to me? For example, if I make a operation of open a file from gedit and copy the content of this file using ctrl+c. And then I open vim and use ctrl+v to paste the content into the new opened file. I know that it will use the buffer of xwindow to store the content. But I am curious how it works in the system level. More specifically, how the underlying linux kernel needs to do to handle this copy-paste operation? Is there any system

Mechanism of clipboard of xwindow

寵の児 提交于 2019-12-18 06:52:54
问题 Can anybody explain the mechanism of clipboard of xwindow to me? For example, if I make a operation of open a file from gedit and copy the content of this file using ctrl+c. And then I open vim and use ctrl+v to paste the content into the new opened file. I know that it will use the buffer of xwindow to store the content. But I am curious how it works in the system level. More specifically, how the underlying linux kernel needs to do to handle this copy-paste operation? Is there any system

Copy to clipboard with Javascript in Firefox

﹥>﹥吖頭↗ 提交于 2019-12-18 05:57:10
问题 I really need a way to copy some text to the OS clipboard in Firefox. Know it is easy in IE and not possible in Chrome and Opera unless flash is used. Because of different reasons I am unable to use the flash solution! Had it working in the past but now the netscape.security.PrivilegeManager.enablePrivilege is protected as far as I can figure out (since ver. 17). It looks as if it is still possible according to this article: https://developer.mozilla.org/en-US/docs/Using_the_Clipboard Believe

How to copy to clipboard with GWT?

狂风中的少年 提交于 2019-12-18 04:34:13
问题 Couldn't find anything on this with a Google Search. Does anyone know how to copy some text to the clipboard through GWT Java code? I'd like to avoid the raw javascript injection solution. Any help or pointers appreciated. 回答1: For the moment it doesn't seem like there are any GWT libraries that provide this functionality. In any case, it's impossible to support this in all browsers as Flash is needed. A rather nice library than wraps the functionality is ZeroClipboard. 回答2: I have used

How can I fix “Cannot open clipboard: Access Denied” errors?

最后都变了- 提交于 2019-12-17 23:25:56
问题 I am using the following code to copy text to the clipboard: Clipboard.Open; try Clipboard.AsText := GenerateClipboardText; finally Clipboard.Close; end; Seemingly at random I get "Cannot open clipboard: Access Denied" errors. I'm guessing that these errors are caused by other application locking the clipboard, but I never seem to be doing anything with other applications that should cause the locks. Strangely my users seem to be reporting more of the errors with Vista and Windows 7 than with

VBA: Read file from clipboard

别等时光非礼了梦想. 提交于 2019-12-17 19:52:39
问题 I'm trying to load a file in a VBA macro that has been copied from, say, an Explorer window. I can easily get the data from the clipboard using DataObject::GetFromClipboard, but the VBA interface to DataObject doesn't seem to have methods for working with any other formats than plain text. There are only GetText and SetText methods. If I can't get a file stream directly from the DataObject, the filename(s) would also do, so maybe GetText could be forced to return the name of a file placed on

How to read clipboard data in cross browser? [duplicate]

こ雲淡風輕ζ 提交于 2019-12-17 19:38:29
问题 This question already has answers here : Closed 8 years ago . Possible Duplicates: Copy / Put text on the clipboard with FireFox, Safari and Chrome How to Copy to Clipboard in JavaScript? Hi , scenario: I copied some content (either from notepad or word) and want to paste it in my iframe. On before pasting i want to manipulate the clipboard content. In IE i can do it with window.clipboardData.getData("Text"); How to read the clipboard data in other browsers (FF/chrome and safari) 回答1: You'll

Copy to Clipboard that also works on Mobile?

家住魔仙堡 提交于 2019-12-17 19:21:01
问题 I'm familiar with ZeroClipboard and jquery.copy, which both use Flash. OK, so I get it, for browser security reasons, copying is disallowed and we need Flash. But this means the copying functionality does not work in mobiles (iPhone, Android) or iPad. Is there any resource or plugin that allows a simple Copy to Clipboard functionality on both modern browsers (include IE7+) and mobile browsers? Thanks! 回答1: I just wanted to offer an update, since there have been some recent developments on

calling a method when content of clipboard is changed

寵の児 提交于 2019-12-17 18:27:28
问题 I'm trying to make a little desktop app that should show the contents of the clipboard (if it is a string). I have done a constructor that does that and it works well, now I just want to make a call to a similar method whenever a text is copied into the clipboard in the OS. I'm quite new to this so any help would be appreciated! Something tells me I should use interrupts in some way... package pasty; import java.awt.FlowLayout; import java.awt.Toolkit; import java.awt.datatransfer.DataFlavor;

How to make copyable Text Widget in Flutter?

你。 提交于 2019-12-17 17:49:07
问题 When long tab on Text widget, a tooltip show up with 'copy'. When click on the 'copy' the text content should copy to system clipboard. The following will copy the text on long tap, but does not show up 'copy', so user will not know, the content is copied to the clipboard. class CopyableText extends StatelessWidget { final String data; final TextStyle style; final TextAlign textAlign; final TextDirection textDirection; final bool softWrap; final TextOverflow overflow; final double