Created
June 30, 2022 05:52
-
-
Save Zalexanninev15/721265d24d1f506a6e56ae6ea39144df to your computer and use it in GitHub Desktop.
Clipboard Usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gets the clipboard text | |
GetClipboardText GetClipboard = new GetClipboardText(); | |
string output = GetClipboard.GetText(); | |
// Sets the clipboard text | |
string input = "Hello World!"; | |
await SetClipboardText.Run(() => System.Windows.Forms.Clipboard.SetText(input)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment