Re: Windows Clipboard



Simon Guest wrote:
> I want to write to the windows clipboard from a PERL program.
> Can anyone tell me how, please


Dear Simon,

If you're using ActiveState Perl (you can find out by typing "perl
-v" at a DOS prompt), you can easily copy text to the Windows clipboard
with the command:

Win32::Clipboard()->Set("text for clipboard");

Of course, this will only work if you use the Win32::Clipboard module,
like this:

use Win32::Clipboard;

Read more about the Clipboard module by typing this at a DOS prompt:

perldoc Win32::Clipboard

I hope this helps, Simon.

-- Jean-Luc

.



Relevant Pages

  • Re: New install for DBD-Oracle in HP-UX
    ... I have come to realise that the supplied Perl doesn't support threads and, ... Simon ... >>acle.sl' for modu ... >> Perhaps a required shared library or dll isn't installed where expected ...
    (perl.dbi.users)
  • Re: Windows Clipboard
    ... > I want to write to the windows clipboard from a PERL program. ... It's Perl (the language) or perl, ...
    (comp.lang.perl.misc)
  • Re: perl implementation of rand() and srand()
    ... > The right direction for the source code to perl? ... the implementation of srand() or randinside it. ... Simon ...
    (comp.lang.perl.misc)
  • Rounding Up/Down Numbers
    ... Once again I have a question on perl. ... After reading "Beginning Perl" by Simon ... Cozens, I just don't find any information ...
    (comp.lang.perl.misc)
  • Re: startting perl
    ... > to run the scripts). ... See Simon Cozen's book, "Beginning Perl", which you can download from ... Australia ...
    (comp.lang.perl.misc)