Re: Push to clipboard?
- To: mathgroup at smc.vnet.net
- Subject: [mg110269] Re: Push to clipboard?
- From: ADL <alberto.dilullo at tiscali.it>
- Date: Fri, 11 Jun 2010 02:08:59 -0400 (EDT)
- References: <hudcjc$d7g$1@smc.vnet.net> <huincm$o10$1@smc.vnet.net>
It may be also interesting to note that, if you wish to copy in the clipboard a string without quotation marks, you may use the following: CopyToClipboard[expr_] := Module[{nb}, nb = CreateDocument[Null, Visible -> False, WindowSelected -> True]; NotebookWrite[nb, Cell[OutputFormData @ expr], All]; FrontEndExecute[FrontEndToken[nb, "Copy"]]; NotebookClose @ nb ]; It works on version Win 7.0.1 ADL