RE: Need help about how to bring image to clipboard?
- To: mathgroup at smc.vnet.net
- Subject: [mg16999] RE: [mg16968] Need help about how to bring image to clipboard?
- From: "Ersek, Ted R" <ErsekTR at navair.navy.mil>
- Date: Sat, 10 Apr 1999 02:13:34 -0400
- Sender: owner-wri-mathgroup at wolfram.com
Ruangyuth Inorn wrote: ---------------------------- My problem is I must do this series of job - PLot[....] - use mouse right click at the image to copy image to clipboard - call my mathlink program to read DIB image from clipboard to process - Plot[...] - use mouse right click at the image to copy image to clipboard - call my mathlink program to read DIB image from clipboard to process . . . . I must do it for many time and I want to write it to package for do this routine job, then I want to write this job to package but I didn't know how to bring image to clipboard without use mouse click, Is someone had any solution? and Is Mathematica had command to put image direct to clipboard? ---------------------- The line below will copy the next graphic to the clipboard. In[1]:= NotebookFind[ nb, "Graphics",Next, CellStyle]; FrontEndExecute[{ FrontEndToken[ FrontEnd`SelectedNotebook[],"Copy" ] }] --------------------- Perhaps you can do everything in one shot. The next line will copy All graphics to the clipboard. In[2]:= NotebookFind[ nb, "Graphics",All, CellStyle]; FrontEndExecute[{ FrontEndToken[ FrontEnd`SelectedNotebook[],"Copy" ] }] ----------------------- Other variations are possible by using SelectionMove. See "The Beginner's Guide to Mathematica Version 3.0" By Jerry Glynn, Theodore Gray. Chapter 56 of this book documents all the features you can use to manipulate the Front End. Actually I think it includes all the features. Many of these Front End features aren't documented in the Mathematica Book! Isn't it strange that they cover this stuff in a book "for beginners"? I wonder what they will include in a book for "advanced users". Regards, Ted Ersek