Ace128 has asked for the wisdom of the Perl Monks concerning the following question:
But, how do I set files in clipboard that I wanna copy/move when I paste in explorer (and even in X in linux)? Like:#!perl -w use strict; use Win32::clipboard; use Time::HiRes qw( usleep ); my $clip = Win32::Clipboard("remove dots and underscore in the clipboa +rd content"); for (;;) { $clip->WaitForChange(); if (Win32::Clipboard::IsFiles()) { my @files = Win32::Clipboard::GetFiles(); print join("\n", @files); } $clip->Empty(); usleep 000_500; }
I seems that Win32::Clipboard doesnt have support for this... But I bet it works with Win32::API! But I have no idea how!Win32::Clipboard::SetFiles(\@files);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Move/Copy files using Clipboard!
by zentara (Cardinal) on Oct 13, 2005 at 11:08 UTC | |
by Ace128 (Hermit) on Oct 13, 2005 at 15:10 UTC | |
|
Re: Move/Copy files using Clipboard!
by BrowserUk (Patriarch) on Oct 14, 2005 at 06:21 UTC | |
by Ace128 (Hermit) on Oct 14, 2005 at 07:20 UTC | |
by BrowserUk (Patriarch) on Oct 14, 2005 at 07:33 UTC | |
by Ace128 (Hermit) on Oct 14, 2005 at 10:40 UTC | |
by BrowserUk (Patriarch) on Oct 14, 2005 at 11:03 UTC | |
| |
|
Re: Move/Copy files using Clipboard!
by radiantmatrix (Parson) on Oct 13, 2005 at 19:37 UTC | |
|
Re: Move/Copy files using Clipboard!
by zentara (Cardinal) on Oct 13, 2005 at 16:33 UTC |