Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrousavy/clipboardmonitor
A small C# Library for Monitoring Clipboard with P/Invokes (e.g.: Clipboard Content Changed event)
https://github.com/mrousavy/clipboardmonitor
clipboard library wpf
Last synced: about 5 hours ago
JSON representation
A small C# Library for Monitoring Clipboard with P/Invokes (e.g.: Clipboard Content Changed event)
- Host: GitHub
- URL: https://github.com/mrousavy/clipboardmonitor
- Owner: mrousavy
- License: mit
- Created: 2017-01-10T16:56:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-19T19:55:28.000Z (almost 8 years ago)
- Last Synced: 2024-05-02T00:59:17.127Z (6 months ago)
- Topics: clipboard, library, wpf
- Language: C#
- Size: 10.7 KB
- Stars: 11
- Watchers: 3
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ClipboardMonitor
A small C# Library for Monitoring Clipboard with P/Invokes (e.g.: Clipboard Content Changed event)[Download the Library (.dll)](https://raw.githubusercontent.com/mrousavy/ClipboardMonitor/master/Downloads/ClipboardMonitor.dll)
# How to use
Add the `.dll` to your .NET Project's `References` Tree in the Solution View._Side note: ClipboardMonitor has to create a Window in order to get hwnd to process WndProc messages in WPF. I've made the Window so that it is not visible but keep in mind that there is a WPF Window created once in the background._
Attach (C#):
```C#
var cm = new ClipboardMonitor();
cm.ClipboardData += (ClipboardDataEventArgs args) => {
MessageBox.Show($"Clipboard Changed! {args.Data.ToString()}");
};
```