xdeletex has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use diagnostics; use Win32::API; my($format,$data,$open,$close,$count,$name,$window,$pointer,$test, $te +st2,$test3); $open = new Win32::API('user32', 'OpenClipboard', 'L', 'I'); if(not defined $open) { die "Can't import API OpenClipboard: $!\n"; } $open->Call(0); $format = new Win32::API('user32', 'EnumClipboardFormats','I','I'); if(not defined $format) { die "Can't import API EnumClipboardFormats: $!\n" } $format->Call(0); $count = new Win32::API('user32', 'CountClipboardFormats','','V'); if(not defined $count) { die "Can't import API CountClipboardFormats: $!\n" } $count->Call(); $name = new Win32::API('user32', 'GetClipboardFormatName','ICI','I'); if(not defined $name) { die "Can't import API GetClipboardFormatName: $!\n" } $pointer= " " x 24; $test = 0; $name->Call($test, $pointer, 24); $close = new Win32::API('user32', 'CloseClipboard', '', 'V'); if(not defined $close) { die "Can't import API CloseClipboard: $!\n" } $close->Call();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Windows Clipboard
by BrowserUk (Patriarch) on Aug 28, 2004 at 10:30 UTC | |
|
Re: Windows Clipboard
by Mr. Muskrat (Canon) on Aug 28, 2004 at 03:50 UTC | |
|
Re: Windows Clipboard
by qumsieh (Scribe) on Aug 28, 2004 at 06:04 UTC | |
|
Re: Windows Clipboard
by xdeletex (Novice) on Aug 28, 2004 at 15:38 UTC |