Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: sending programatically output to clipboard

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88917] Re: sending programatically output to clipboard
  • From: John Fultz <jfultz at wolfram.com>
  • Date: Wed, 21 May 2008 14:50:24 -0400 (EDT)
  • Reply-to: jfultz at wolfram.com

On Tue, 20 May 2008 06:53:07 -0400 (EDT), Adrian Lupascu wrote:
> Hi everyone,
>
> I would like to find a way to programatically send some output to the
> clipboard. For the time being I would like to do that with formatted
> equations, and I would like to send them as bitmap or metafile (I work
> on Windows). So it should be the equivalent of "Copy As". I searched on
> the forum and I found a few posts on related topics, but I did not
> manage to get it working.
> Any help is appreciated.
>
> Thanks,
> Adrian

For example,

nb = NotebookPut[Notebook[{Cell["1234", "Title"]}]];
SelectionMove[nb, All, Notebook];
FrontEndExecute[FrontEndToken[nb, "CopySpecial", "EMF"]]

Use "EMF" for metafile (copies both enhanced and windows-style metafiles). =
 Use 
"MGF" for bitmaps.

Sincerely,
 
John Fultz
jfultz at wolfram.com
User Interface Group
Wolfram Research, Inc.




  • Prev by Date: Re: sending programatically output to clipboard
  • Next by Date: Re: How to connect one object to the other?
  • Previous by thread: Re: sending programatically output to clipboard
  • Next by thread: Re: sending programatically output to clipboard