Hum, I don't have read this discussion at the beginning, and I just read it now.
I have already made an extension "Download with ... OrbitDownloader", but it uses orbitdm instead of grab.
But it's exactly the same. You're creating the wheel again
Here is my macro where I have inserted grab
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ---------- OrbitDownloader (An external download manager for K-Meleon) -------------------------------------------
#
# Needed files : orbit.exe
# Dependencies :
# Resources : -
# Preferences :
# ------------------------------------------------------------------------------------------------------------------
# In case of manual install, registry keys can't be found and menu is grayed
# To Bypass it, just fill the content of this variable the example value adapted
# to your config
# Example :
# $_Orbit_Path="\"C:\\Program Files\\OrbitDownloader\\orbitdm.exe\" %1"
# You must restart K-Meleon to take the modifications
# You have a shortcut to modify this value:
# SHIFT+ALT+T
$_Orbit_Path="";
# ---------- General -----------------------------------------------------------
$_Orbit_CommandLine="";
Orbit_Path{
$ext="kmm"; &getExtensionHandler; exec(sub("%1","macros\\Orbit.kmm",$cmdline));
}
_Orbit_CommandLine{
# try to get Orbit's command line from the Windows Registry
$__data=readreg("HKLM","Software\\Orbit\\path");
$__data==""?0:$__data=$__data."\\orbitdm.exe"." %1";
$_Orbit_CommandLine=$__data;
$_Orbit_CommandLine==""?$_Orbit_CommandLine=$_Orbit_Path:0;
}
$OnStartup=$OnStartup."_Orbit_CommandLine;";
# ----- MACROS
Orbit{
menugrayed=($_Orbit_CommandLine=="");
exec(sub("%1",$LINKURL,$_Orbit_CommandLine));
}
Grab{
menugrayed=($_Orbit_CommandLine=="");
$_Orbit_Grab=sub("orbitdm","grab",$_Orbit_CommandLine);
exec(sub("%1",$LINKURL,$_Orbit_Grab)." ".$LinkURL);
}
# ----- PRIVATE
_DownloadWith_Orbit_BuildMenu{
getpref(BOOL,"extension.downloadwith.loaded")?0:&__DownloadWith_Orbit_Default;
setpref(BOOL,"extension.downloadwith.loaded",true);
setmenu("Download &With",macro,"&Orbit Downloader",Orbit,0);
setmenu("Download &With",macro,"&Grab++",Grab,0);
setaccel("SHIFT ALT T","macros(Orbit_Path)");
}
__DownloadWith_Orbit_Default{
setmenu(LinkSave,inline,OpenWith);
setmenu(OpenWith,popup,"Download &With");
}
_DownloadWith_Orbit_KillPref{
delpref("extension.downloadwith.loaded");
}
$OnQuit=$OnQuit."_DownloadWith_Orbit_KillPref;";
$OnInit=$OnInit."_DownloadWith_Orbit_BuildMenu;";
# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."Orbit;";
A+
Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0
Web:
http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr
Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc
Edited 2 time(s). Last edit at 08/12/2008 08:03PM by JujuLand.