How can I convert rich text to plain text in advanced scripting?

136 Views Asked by At

I would like to write a voice command to paste the clipboard in plain text. How can I convert rich text to plain text in advanced scripting?

I use Dragon NaturallySpeaking 12.5 professional with Windows 7 SP1 x64 Ultimate.

1

There are 1 best solutions below

0
On BEST ANSWER

I haven't found any solution using advanced scripting.

As a pis-aller, I have set up a shortcut that copies content to the clipboard using PureText 3.0:

enter image description here

enter image here

enter image description here

The following AHK script should also work, but might be unfriendly with Unicode characters:

^!v::
   ClipboardTemp = %ClipBoardAll%
   ClipBoard = %ClipBoard%
   Send ^v
   sleep, 30
   ClipBoard = %ClipboardTemp%
Return