Powershell Binary Clipboard Export, Modify, and Import

Viewed 17

Is it possible to do the following in PowerShell, using Get-Clipboard and Set-Clipboard or any other method?

  1. Export the current clipboard content to a file. Clipboard content will contain binary content due copying from MS apps (like OneNote).
  2. String-based text replacement to the file (e.g. replace "asdf" with "test")
  3. Import modified clipboard content file back into clipboard (Get-Clipboard)

Modified clipboard could then be used in the original app just as normal. Another reason to have this go to a file is because I would like to be able to use this clipboard as a template for future clipboard replacements.

0 Answers
Related