MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Push to clipboard?


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


  • Prev by Date: Re: Lists: Row Vectors vs. Column Vectors. (feels like such a silly
  • Next by Date: SQL question, Can I do something like Rest[] and Most[]
  • Previous by thread: Re: Push to clipboard?
  • Next by thread: Simplifying complicated expressions