clipboard

WM_DRAWCLIPBOARD multiple messages

折月煮酒 提交于 2020-01-06 05:59:32
问题 I'm working on a small clipboard manager which should remember recent copied text. I'm using Windows system messages for being notified when something has been copied to clipboard by WM_DRAWCLIPBOARD. The problem is some of the applications I use send multiple WM_DRAWCLIPBOARD messages to my application, for instance when I copy something in Chrome web browser it's only one message, miranda's chat window sends 3 of the same messages with the same text to the clipboard viewer's chain. How to

Clipboard shows a different label

ε祈祈猫儿з 提交于 2020-01-06 05:30:08
问题 The behavior of long-pressing on an edittext is showing a Clipboard with a wrong label as shown in the picture below. instead of having the normal label Clipboard it's showing tw_clipboard_title_text . This is especially happening in samsung. What could be the issue? I'm not even dealing with ClipboardManager <EditText android:id="@+id/signup_Phone" android:layout_width="match_parent" android:layout_height="wrap_content" android:afterTextChanged="@{viewModel::onUsernameChanged}" android

Clipboard shows a different label

和自甴很熟 提交于 2020-01-06 05:30:07
问题 The behavior of long-pressing on an edittext is showing a Clipboard with a wrong label as shown in the picture below. instead of having the normal label Clipboard it's showing tw_clipboard_title_text . This is especially happening in samsung. What could be the issue? I'm not even dealing with ClipboardManager <EditText android:id="@+id/signup_Phone" android:layout_width="match_parent" android:layout_height="wrap_content" android:afterTextChanged="@{viewModel::onUsernameChanged}" android

Detect & Differentiate Clipboard Events (Cut,Copy and Paste)

南笙酒味 提交于 2020-01-06 02:49:04
问题 is it possible for it to detect and differentiate cut,copy, or paste of files? I only can detect a change in the clipboard to far. public partial class Form1 : Form { [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern IntPtr SetClipboardViewer(IntPtr hWnd); [DllImport("User32.dll", CharSet = CharSet.Auto)] public static extern IntPtr ChangeClipboardChain(IntPtr hWndRemove, IntPtr hWndNewNext); [DllImport("user32.dll", CharSet = CharSet.Auto)] public static extern int

Angular 2 IE document.execCommand('copy') coping table, td, td, th not working

≡放荡痞女 提交于 2020-01-05 04:16:07
问题 I am working on Angular4/ HTML5 application with TypeScript. I have a table with tr, td, and th. I am doing copy to clipboard so that user can click a button to copy to clipboard and paste it in outlook, text editor or so. When pasting in Outlook I am having issue with IE. Chrome works fine. When I copy and paste into Outlook using IE browser my table is not copying correctingly. Please see below pics. I see gap between each td and each td/th. IE: Pasting into Outlook copying from IE. You can

TypeScript How to paste data from clipboard using a button?

蓝咒 提交于 2020-01-05 03:59:06
问题 I am able to copy data to the clipboard using a button press as seen below. But how can use the same behavior to get data from the clipboard? The paste event only works when I click into an input field or text area. I need it to be able to work using a button. I tried using window.clipboardData but it doesn't recognize it. Is there a way I can fire the Paste event through a button press? Copy(val) { const selBox = document.createElement('textarea'); selBox.style.position = 'fixed'; selBox

Retaining clipboard content during code execution

不问归期 提交于 2020-01-04 13:37:06
问题 This seems like it should be a simple problem but I've been unable to solve it. I have a program I'm writing where the user is babied through these steps: Step 1: Go to another spreadsheet and copy the content Step 2: Come back to my spreadsheet and press a button to paste that content When they press my button it needs to unlock the current sheet and paste the data without any of the formatting. This is what I have: ActiveWorkbook.ActiveSheet.Unprotect Range("A1").Select Selection

Why doesn't Clipboard.GetText work?

南楼画角 提交于 2020-01-04 02:56:09
问题 String str = Clipboard.GetText(); throws an exception An unhandled exception of type 'System.StackOverflowException' occurred in PresentationCore.dll How do I prevent this problem? 回答1: You could try: Clipboard.GetText(System.Windows.Forms.TextDataFormat.Text) Or take a look here: Clipboard.GetText returns null (empty string) http://msdn.microsoft.com/es-en/library/system.windows.forms.clipboard.gettext.aspx 回答2: Look at the accepted answer in this thread: Link to working code sample In

In what circumstances will GetClipboardData(CF_TEXT) return NULL?

帅比萌擦擦* 提交于 2020-01-03 20:55:14
问题 I have this intermittent and incosistent problem which has been driving me crazy for a long time: In a program of mine, GetClipboardData(CF_TEXT) succeeds 90% (or so) of the time, but every once in a while it returns NULL. This is despite the fact that OpenClipboard() always succeeds (and return value checked) before calling GetClipboardData(CF_TEXT). Please note that the 90% success ratio is for the same exact page! (i.e. I know there is a CF_TEXT content there) Note: When it fails, I

C# - System.Windows.Forms.Clipboard.GetDataObject() doesnt response

試著忘記壹切 提交于 2020-01-03 17:59:28
问题 Why doesn't System.Windows.Forms.Clipboard.GetDataObject() return when calling it from a different thread and before the main thread stops, after calling System.Windows.Forms.Clipboard.Clear() within the main thread? I have written a sample program to explain my question: public class ClipboardDemo { [STAThread] public static void Main(string[] args) { Thread.CurrentThread.Name = "MAIN_THREAD"; Thread clipboardViewerThread = new Thread(RunClipboardViewer); clipboardViewerThread.Name =