Ok, runing that and pasting works! However, I had this error:
C:\Clipboard\Win32-Clipboard-0.52>patch.exe -p 1 -i 53.patch
patching file `Clipboard.pm'
patching file `Clipboard.xs'
patching file `Makefile'
Hunk #2 succeeded at 239 (offset -6 lines).
Hunk #3 FAILED at 490.
Hunk #4 FAILED at 812.
2 out of 4 hunks FAILED -- saving rejects to Makefile.rej
patching file `META.yml'
patching file `t\test.t'
patch unexpectedly ends in middle of line
patch: **** malformed patch at line 218:
But, that just affected the test, so not that big of a deal...
Now, a few things needs to be done in C :)
- Making move work
- Making copy/move work and not ask for overwrite, but save as "Copy of 53.patch"
Nice that:
my @files = ('c:\Clipboard\Win32-Clipboard-0.52\53.patch', 'c:\Clipboa
+rd\Win32-Clipboard-0.52\Clipboard.bs');
$clip->SetFiles( @files );
works! :)
I can also point out that it would be possible to do this with Win32::API. You have to deepdive into http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/programmersguide/shell_basics/shell_basics_programming/transferring/clipboard.asp and http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/functions/dragqueryfile.asp and use that with http://perlmonks.com/?node_id=386530 . But, I guess you have to dive to MSDN aswell doing it the .xs (C) way, but here you have to do C code...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.