Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

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


  • 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