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: [mg88949] Re: sending programatically output to clipboard
  • From: David Reiss <dbreiss at gmail.com>
  • Date: Thu, 22 May 2008 02:35:37 -0400 (EDT)
  • References: <g11r48$abr$1@smc.vnet.net>

Just a note that "EMF" and "MGF" are Windows-specific Export
formats...

The original poster did indeed specify that they were working on
Windows.  But any other folks that are not should not be concerned if
this doesn't work for them...

Cheers,

David


On May 21, 2:54 pm, John Fultz <jfu... at wolfram.com> wrote:
> 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
> jfu... at wolfram.com
> User Interface Group
> Wolfram Research, Inc.



  • Prev by Date: Re: EventHandler problem
  • Next by Date: Re: intersecting a hypercube and a hyperplane
  • Previous by thread: Re: sending programatically output to clipboard
  • Next by thread: DumpSave of packages