📜 ⬆️ ⬇️

Copy the formula from the Windows 7 Math Input Panel to the clipboard using Powershell 2.0

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)
 }

Launch
powershell.exe -noprofile -sta -command .\MathML.ps1

')

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


All Articles