Extensions :  K-Meleon Web Browser Forum
All about K-Meleon extensions. 
Portable Seamonkey KMM
Posted by: ndebord
Date: September 14, 2011 04:22AM

Anybody know how to get a right click open in SeamonkeyPortable from K-meleon? The standard Alain Seamonkey KMM file doesn't seem to work for me, but that is probably because I haven't done something properly there.

Thanks.

N

Options: ReplyQuote
Re: Portable Seamonkey KMM
Posted by: guenter
Date: September 15, 2011 12:36AM

It is possibly coded to try to get the strings of the path to SeaMonkey.exe from the OS registry.

Try the macro extension that calls SeaMonkey from K-Meleon Extensions Central.
That lets You set the path to SeaMonkey.exe on first start manually.



Edited 1 time(s). Last edit at 09/15/2011 12:37AM by guenter.

Options: ReplyQuote
Re: Portable Seamonkey KMM
Posted by: JujuLand
Date: September 15, 2011 09:03AM

If seamonkey has been installed with a setup, but with an archive file, it is probably not installed in the registre. So, you can force it in the kmm file near the beginning, of the file. You have just to replace the indicated path and uncomment the line.

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



Options: ReplyQuote
Re: Portable Seamonkey KMM
Posted by: ndebord
Date: September 15, 2011 02:34PM

Quote
JujuLand
If seamonkey has been installed with a setup, but with an archive file, it is probably not installed in the registre. So, you can force it in the kmm file near the beginning, of the file. You have just to replace the indicated path and uncomment the line.

A+

Thanks, this is what I have in the Seamonkey.kmm file:

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- Seamonkey Web Services / External Applications ----------------------------------------------------------
#
# Dependencies : Mozilla Seamonkey
# 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 :
# $_Seamonkey_Path="\"C:\\Program Files\\Seamonkey\\Seamonkey.exe\" %1"
# You must restart K-Meleon to take the modifications
# You have two shortcuts to modify this value:
# CTRL+ALT+S when The command line is empty
# SHIFT+ALT+S else

$_Seamonkey_Path="\"C:\\Seamonkey\\Seamonkeyportable.exe\";

# ---------- General -----------------------------------------------------------------------------------------------

$_Seamonkey_CommandLine="\"C:\\Seamonkey\\Seamonkeyportable.exe\";

# ----- PRIVATE

$_SeaApp_OpenPageWith="S&end Page To";
$_SeaApp_OpenLinkWith="S&end Link To";
$_SeaApp_OpenURLWith="S&end To";

_SeaApp_BuildMenu{
# context menus
$__browser=getpref(BOOL,"extensions.browsers.loaded");
index($macroModules,";IE;")>-1?$__browser=true:0;
$__browser?0:setmenu(DocumentSave,popup,$_SeaApp_OpenPageWith);
$__browser?0:setmenu(LinkSave,popup,$_SeaApp_OpenLinkWith);
$__browser?0:setmenu(_Go_Open,popup,$_SeaApp_OpenURLWith);
setpref(BOOL,"extensions.browsers.loaded",true);
}

$OnInit=$OnInit."_SeaApp_BuildMenu;";

# ---------- Mozilla Seamonkey ---------------------------------------------------------------------------------------

Seamonkey_OpenPage{
menugrayed=($_Seamonkey_CommandLine=="");
exec(sub("%1",$URL,$_Seamonkey_CommandLine));
}
Seamonkey_OpenLink{
menugrayed=($_Seamonkey_CommandLine=="");
exec(sub("%1",$LINKURL,$_Seamonkey_CommandLine));
}
Seamonkey_OpenURL{
menugrayed=($_Seamonkey_CommandLine=="");
$__data=$URLBAR; $__data==""?$__data=$URL:0;
exec(sub("%1",$__data,$_Seamonkey_CommandLine));
}
Seamonkey_Path{
$ext="kmm"; &getExtensionHandler; exec(sub("%1","macros\\Seamonkey.kmm",$cmdline));
}

# ----- PRIVATE

_Seamonkey_CommandLine{
# try to get Seamonkey's command line from the Windows Registry
$__HKEY="HKCU";
$__data=readreg($__HKEY,"Software\\mozilla.org\\Seamonkey\\CurrentVersion");
$__data==""?$__HKEY="HKLM":0;
$__data==""?$__data=readreg($__HKEY,"Software\\mozilla.org\\Seamonkey\\CurrentVersion"):0;
$__data=readreg($__HKEY,"Software\\mozilla.org\\Seamonkey\\".$__data."\\Main\\PathToExe");
$__data==""?0:$__data=$__data." %1";
$_Seamonkey_CommandLine=$__data;
$_Seamonkey_CommandLine==""?$_Seamonkey_CommandLine=$_Seamonkey_Path:0;
$_Seamonkey_CommandLine==""?setaccel("CTRL ALT S","macros(Seamonkey_Path)"):setaccel("SHIFT ALT S","macros(Seamonkey_Path)");
}

$OnStartup=$OnStartup."_Seamonkey_CommandLine;";

_Seamonkey_BuildMenu{
setmenu($_SeaApp_OpenPageWith,macro,"&Seamonkey",Seamonkey_OpenPage,0);
setmenu($_SeaApp_OpenLinkWith,macro,"&Seamonkey",Seamonkey_OpenLink,0);
setmenu($_SeaApp_OpenURLWith,macro,"&Seamonkey",Seamonkey_OpenURL,0);
}
_Seamonkey_SetAccels{
setaccel("CTRL ALT S","macros(Seamonkey_OpenPage)");
}

_Seamonkey_KillPref{
delpref("extensions.browsers.loaded");
}

$OnQuit=$OnQuit."_Seamonkey_KillPref;";
$OnInit=$OnInit."_Seamonkey_SetAccels;_Seamonkey_BuildMenu;";
# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."Seamonkey;";

N

Options: ReplyQuote


K-Meleon forum is powered by Phorum.