Extensions
: K-Meleon Forum
All about K-Meleon extensions.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=ndebord] [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+[/quote] 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;";[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development