| Store | Cart

RE: drag'n'drop onto desktop icon ???

From: Jack D. <good...@hotmail.com>
Mon, 23 May 2005 01:30:13 -0600
 
> -----Original Message-----> From: perl...@listserv.ActiveState.com > [mailto:perl...@listserv.ActiveState.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

Recent Messages in this Thread
Michael D Schleif May 23, 2005 05:29 am
$Bill Luebkert May 23, 2005 07:14 am
Jack D. May 23, 2005 07:30 am
Messages in this thread