Skip to content

Instantly share code, notes, and snippets.

@Zalexanninev15
Created June 30, 2022 05:52
Show Gist options
  • Save Zalexanninev15/721265d24d1f506a6e56ae6ea39144df to your computer and use it in GitHub Desktop.
Save Zalexanninev15/721265d24d1f506a6e56ae6ea39144df to your computer and use it in GitHub Desktop.
Clipboard Usage
// 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