CongratulationsStefan wrote:500
Though it's history in the meantime
And I must say: really helpful! Even for someone like me - just getting some ideas from your codings!
So keep up your good work:
Danke!
CongratulationsStefan wrote:500
OH, i had an coma to less, sorry.SkyFrontier wrote:@Stefan:
1) Yeah, I tested one OR another. Post both for a matter of being concise.
Check this out:SkyFrontier wrote: 2) A message box would be nice (if it bothers me in real usage, I guess I can disable it easier than enabling it from a non-message box script).
3) Yes, ideally this must work for any number of files' addresses, no matter what input their nature is: URLs or local paths, mixed up or not.
Code: Select all
sel; //Deselect all.
$Source = inputselect("Input from: (select only one)", "+File|Clipboard",,2);
IF ($Source=="File") { $Source = readfile("e:\Temp\a.txt");}
elseif($Source=="Clipboard") { $Source = "<clipboard>";}
else { msg "only one selection please."; end(1);}
$Loop = 1;
while(1)
{
$Line = gettoken($Source, $Loop, "<crlf>");
IF ($Line == "") {break;}
IF (strpos($Line,"\") == -1)
{
$Item = regexreplace($Line,".+/(.+)","$1");
}else{
$Item = regexreplace($Line,".+\\(.+)","$1");
}
selfilter """$Item""",,,1;
incr $Loop;
}
Code: Select all
http://download.microsoft.com/download/2/1/8/218C926D-9400-43D6-9E81-E236AD9ED2A5/MicrosoftFixit50450.msi
http://download.microsoft.com/download/B/C/7/BC767024-747D-417A-BFCF-3C0806826140/MicrosoftFixit50154.msi
http://download.microsoft.com/download/D/1/8/D1893A85-9299-4372-9B51-DAACE77CEDEE/MicrosoftFixit50416.msi
Code: Select all
$Source = inputselect("Input from: (select only one)", "File|Clipboard",,2);
Code: Select all
sel; //Deselect all.
focus;
$Source = <clipboard>;
$Loop = 1;
while(1)
{
$Line = gettoken($Source, $Loop, "<crlf>");
IF ($Line == "") {break;}
IF (strpos($Line,"\") == -1)
{
$Item = regexreplace($Line,".+/(.+)","$1");
}else{
$Item = regexreplace($Line,".+\\(.+)","$1");
}
selfilter """$Item""",,,1;
incr $Loop;
}
#102;
Code: Select all
[ ] User selected entry >>> art;music;*.jpeg