Re: Easy way to read clipboard?
- To: mathgroup at smc.vnet.net
- Subject: [mg117883] Re: Easy way to read clipboard?
- From: David Reiss <dbreiss at gmail.com>
- Date: Sat, 2 Apr 2011 02:44:52 -0500 (EST)
- References: <in3v6n$i0i$1@smc.vnet.net>
NotebookGet@ClipboardNotebook[] or any other notebook manipulation commands on ClipboardNotebook[] --David On Apr 1, 3:34 am, mmausr <opn... at gmail.com> wrote: > The Paste[] command will paste the current contents of the clipboard > into a cell. In theory, one can then access the contents of a cell by > executing front-end commands in the kernel, but I'd prefer something > more direct. > > Say that I want to set the variable Foo to the current contents of the > Clipboard, which holds the number 100. I'd like to be able to execute > something like Foo = ReadClipboard[] and have Foo set to the integer > value 100. > > Any suggestions?