Windows Clipboard

S

Simon Guest

I want to write to the windows clipboard from a PERL program.
Can anyone tell me how, please
SimonG
 
C

Christopher Nehren

I want to write to the windows clipboard from a PERL program.

It's Perl (the language) or perl (the program), but never PERL.
Can anyone tell me how, please

Have you thought of looking at some of the Win32 modules on CPAN?

Best Regards,
Christopher Nehren
 
H

Henry Law

I want to write to the windows clipboard from a PERL program.
Can anyone tell me how, please

Since you're running Windows it's 100:1 that you're using ActiveState
Perl. If so then look in the HTML Help; towards the bottom on the LH
pane you'll find a module called Win32::Clipboard. Care to guess what
it does?

Or open a command window and type

perldoc Win32::Clipboard

.... but the HTML is easier.
 
J

jl_post

Simon said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
474,266
Messages
2,571,082
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top