Powershell 2.0を使用して、数式をWindows 7数学入力パネルからクリップボードにコピーします

MathML.ps1
 Add-Type -AssemblyName PresentationCore
 $ dataObject = [Windows.Clipboard] :: GetDataObject()
 $ memoryStream = $ dataObject.GetData( "MathML")
 if($ memoryStream){
     $ streamReader = [System.IO.StreamReader]($ memoryStream)
     $ mathML = $ streamReader.ReadToEnd()
     [Windows.Clipboard] :: SetText($ mathML)
 }

打ち上げ
powershell.exe -noprofile -sta -command .\MathML.ps1


Source: https://habr.com/ru/post/J93736/


All Articles