comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » copying text to the system clipboard
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
copying text to the system clipboard [message #42668] Fri, 18 February 2005 10:29 Go to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Hi all,

is it possible to copy text from an IDL variable to the system
clipboard? Specifically, I would like to copy a string array into a
multi-line text which can be pasted into Notepad or wherever.

I found David's 'clipboard' routine, which does it for graphics windows.

Thanks for your help,
Benjamin
Re: copying text to the system clipboard [message #42800 is a reply to message #42668] Wed, 23 February 2005 13:21 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Peter Mason writes:

> David, some things are meant to be. Winclip is so old now that it's plain
> embarrassing. (Wavdemo included the core bits of Winclip, I think.
> Wavdemo isn't mine.) I sent a copy of my winclip.zip to Benjamin - who was
> specifically after something that it might still be able to - but aside from
> that I'd be pleased to see it slip into, uh, deeper obscurity.

I understand. Even some of the stuff I've written recently
falls into that category. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: copying text to the system clipboard [message #42801 is a reply to message #42668] Wed, 23 February 2005 12:51 Go to previous messageGo to next message
Peter Mason is currently offline  Peter Mason
Messages: 145
Registered: June 1996
Senior Member
David Fanning wrote:
> Mark Hadfield writes:
>
>> There used to be a file on David's site called "wavdemo.zip" that had
>> the winclip DLL *plus* the C code and sample IDL programs. Perhaps
>> David can resurrect that, otherwise I have a copy somewhere. (To the
>> best of my knowledge, there are no restrictions on redistributing
>> this stuff.)
>
> No, I looked for it this morning. It seems to have disappeared. :-(
>
> Cheers,
>
> David
>
> P.S. I'd be happy to put it in a save place if I could find
> it again.

David, some things are meant to be. Winclip is so old now that it's plain
embarrassing. (Wavdemo included the core bits of Winclip, I think.
Wavdemo isn't mine.) I sent a copy of my winclip.zip to Benjamin - who was
specifically after something that it might still be able to - but aside from
that I'd be pleased to see it slip into, uh, deeper obscurity.

Cheers,
Peter
Re: copying text to the system clipboard [message #42802 is a reply to message #42668] Wed, 23 February 2005 12:47 Go to previous messageGo to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Mark Hadfield wrote:
> Benjamin Hornberger wrote:
>
>> I found winclip.dll in the file bell.zip in David's coyote library. Is
>> there any documentation on how to use it (not for ringing the bell,
>> but for the clipboard)?
>
>
> There used to be a file on David's site called "wavdemo.zip" that had
> the winclip DLL *plus* the C code and sample IDL programs. Perhaps David
> can resurrect that, otherwise I have a copy somewhere. (To the best of
> my knowledge, there are no restrictions on redistributing this stuff.)
>

I got the info from Peter Mason in the meantime. Thanks anyway,

Benjamin
Re: copying text to the system clipboard [message #42803 is a reply to message #42668] Wed, 23 February 2005 12:42 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
David Fanning wrote:
> Mark Hadfield writes:
>
>> There used to be a file on David's site called "wavdemo.zip" that had
>> the winclip DLL *plus* the C code and sample IDL programs. Perhaps David
>> can resurrect that, otherwise I have a copy somewhere. (To the best of
>> my knowledge, there are no restrictions on redistributing this stuff.)
>
> No, I looked for it this morning. It seems to have disappeared. :-(
>
> P.S. I'd be happy to put it in a safe place if I could find
> it again.

OK, I'll track down my files and send them to you.

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: copying text to the system clipboard [message #42805 is a reply to message #42668] Wed, 23 February 2005 12:33 Go to previous messageGo to next message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Hadfield writes:

> There used to be a file on David's site called "wavdemo.zip" that had
> the winclip DLL *plus* the C code and sample IDL programs. Perhaps David
> can resurrect that, otherwise I have a copy somewhere. (To the best of
> my knowledge, there are no restrictions on redistributing this stuff.)

No, I looked for it this morning. It seems to have disappeared. :-(

Cheers,

David

P.S. I'd be happy to put it in a save place if I could find
it again.
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Re: copying text to the system clipboard [message #42806 is a reply to message #42668] Wed, 23 February 2005 12:18 Go to previous messageGo to next message
Mark Hadfield is currently offline  Mark Hadfield
Messages: 783
Registered: May 1995
Senior Member
Benjamin Hornberger wrote:
> I found winclip.dll in the file bell.zip in David's coyote library. Is
> there any documentation on how to use it (not for ringing the bell, but
> for the clipboard)?

There used to be a file on David's site called "wavdemo.zip" that had
the winclip DLL *plus* the C code and sample IDL programs. Perhaps David
can resurrect that, otherwise I have a copy somewhere. (To the best of
my knowledge, there are no restrictions on redistributing this stuff.)

--
Mark Hadfield "Ka puwaha te tai nei, Hoea tatou"
m.hadfield@niwa.co.nz
National Institute for Water and Atmospheric Research (NIWA)
Re: copying text to the system clipboard [message #42820 is a reply to message #42668] Wed, 23 February 2005 06:31 Go to previous messageGo to next message
Benjamin Hornberger is currently offline  Benjamin Hornberger
Messages: 258
Registered: March 2004
Senior Member
Andrew Cool wrote:
> Benjamin Hornberger <benjamin.hornberger@stonybrook.edu> wrote in message news:<421633eb$1_3@marge.ic.sunysb.edu>...
>> is it possible to copy text from an IDL variable to the system
>> clipboard? Specifically, I would like to copy a string array into a
>> multi-line text which can be pasted into Notepad or wherever.
>>

>
> Under Windows, Peter Mason's WINCLIP DLL with do this for you, with
> either string or numeric variables.

I found winclip.dll in the file bell.zip in David's coyote library. Is
there any documentation on how to use it (not for ringing the bell, but
for the clipboard)?

First, I guess, I have to copy winclip.dll to <idldir>\bin\bin.x86,
right? Then?

Thanks for your help,
Benjamin
Re: copying text to the system clipboard [message #42826 is a reply to message #42668] Tue, 22 February 2005 18:32 Go to previous messageGo to next message
andrew.cool is currently offline  andrew.cool
Messages: 47
Registered: July 2003
Member
Benjamin Hornberger <benjamin.hornberger@stonybrook.edu> wrote in message news:<421633eb$1_3@marge.ic.sunysb.edu>...
> Hi all,
>
> is it possible to copy text from an IDL variable to the system
> clipboard? Specifically, I would like to copy a string array into a
> multi-line text which can be pasted into Notepad or wherever.
>
> I found David's 'clipboard' routine, which does it for graphics windows.
>
> Thanks for your help,
> Benjamin

Benjamin,

Under Windows, Peter Mason's WINCLIP DLL with do this for you, with
either string or numeric variables.

Cheers,

Andrew

andrew-dot-cool-at-dsto.defence.gov.au
Adelaide, South Australia, Oz
Re: copying text to the system clipboard [message #85490 is a reply to message #42668] Tue, 13 August 2013 09:14 Go to previous messageGo to next message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
Sorry to resurrect an old thread, but it seems that I also need this functionality. I need to be able to copy a string or numeric variable to/from the windows system clipboard.

Does anyone here have a copy of the source code for the WINCLIP DLM (written by Peter Mason) which they could share? Or is there another way to do this?

thanks,
Mark
Re: copying text to the system clipboard [message #85491 is a reply to message #85490] Tue, 13 August 2013 10:16 Go to previous messageGo to next message
Phillip Bitzer is currently offline  Phillip Bitzer
Messages: 223
Registered: June 2006
Senior Member
The standard (?) way to do this under Linux is to use pipes. This also apparently works in "newer" versions of Windows:

IDL> SPAWN, 'echo test | clip'

It tests fine on Win 7.1.
Re: copying text to the system clipboard [message #85506 is a reply to message #85491] Wed, 14 August 2013 00:04 Go to previous messageGo to next message
markb77 is currently offline  markb77
Messages: 217
Registered: July 2006
Senior Member
Thanks. This wouldn't have worked for me due to the large amounts of data I want to transfer to/from the clipboard. Also, the code should work in the Virtual Machine and I'm not sure that spawn is supported there.

Peter Mason was kind enough to send his original WINCLIP code to me, so that should work.

Just to register this with Exelis: can we please have native IDL support for copying data to and from the system clipboard? Such as the "clipboard" command in MatLab? Thanks!

Mark
Re: copying text to the system clipboard [message #85539 is a reply to message #85506] Thu, 15 August 2013 06:57 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
superchromix writes:

> Peter Mason was kind enough to send his original WINCLIP code to me, so that should work.

Goodness, I thought Peter had retired long ago. He is at least as old as
I am! ;-)

This wouldn't have been a 64-bit version of WINCLIP would it? I would
really like to be able to play my old Three Stooges clip: "No, no, no,
you are doing it ALL wrong!" I miss it. This is an extremely effective
tool during the development stage of any project. :-)

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: CGMAP_GSHHS: problem with land/water colors
Next Topic: Automatic interpolation / smoothing in TV??

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 11:32:33 PDT 2025

Total time taken to generate the page: 0.00546 seconds