RE: drag'n'drop onto desktop icon ???
by Jack D. other posts by this author
May 23 2005 12:58AM messages near this date
view in the new Beta List Site
drag'n'drop onto desktop icon ???
|
Re: drag'n'drop onto desktop icon ???
> -----Original Message-----
> From: perl-win32-users-bounces@[...].com
> [mailto:perl-win32-users-bounces@[...].com] On
> Behalf Of Michael D Schleif
> Sent: May 22, 2005 11:29 PM
> To: perl-win32-users mailing list
> Subject: drag'n'drop onto desktop icon ???
>
> I have a perl program that successfully processes a set of text files.
> So far, the UI is to pass the incoming text file to the
> program on the command line.
>
> Users want an icon on their desktops, and they want to drag
> the text file onto this icon, in order to process the file.
>
> I have not been able to figure out how to do this.
>
> What do you think?
>
You can add a DropHandler to the registry manually (or just run the perl
program provided below)
###########################
use Win32::TieRegistry;
$Registry-> Delimiter("/");
$perlKey = $Registry-> {"HKEY_CLASSES_ROOT/Perl/"};
$perlKey-> {"shellex/"} = {
"DropHandler/" => {
"/"=> "{86C86720-42A0-1069-A2E8-08002B30309D}"
}};
###########################
Once that is done - any icon with the .pl extension should receive the
filenames in @ARGV.
Jack
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Michael D Schleif
Jack D.
$Bill Luebkert
|