WPF Clipboard
Clipboad on wpf by powershell
PowerShellでWPFのクリップボードを使う。
[Windows.Clipboard] のGetText(), SetText()を使う。
$get = [Windows.Clipboard]::GetText()
[Windows.Clipboard]::SetText("oha")
[Windows.Clipboard]::Clear()
但し、下記が必要
Add-Type -AssemblyName PresentationCore
参考
https://learn-powershell.net/2014/07/24/building-a-clipboard-history-viewer-using-powershell/
こちらはWindows.Forms/clip.exe
https://letspowershell.blogspot.jp/2016/03/powershell_12.html?m=1
Windows forms
http://stackoverflow.com/questions/13127578/pipe-output-to-the-clipboard-using-powershell
http://d.hatena.ne.jp/newpops/touch/20070120/p1
http://stackoverflow.com/questions/13127578/pipe-output-to-the-clipboard-using-powershell
http://stackoverflow.com/questions/34724412/text-selection-on-textblock-and-label-wpf