Quote
adodupan
Can you offer a way to get a list of loaded kplugins (this function is necessary to add in jsbridge also)
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage2) # # ---------- KPluginsList.kmm # ---------- K-Meleon Macro Language for displaying DLLs in KPlugins folders -- # # Dependencies : main.kmm # Resources : # Preferences : - # Reference : http://kmeleonbrowser.org/forum/read.php?8,136880,137145,page=2#msg-137145 # Version : 1.0 2016-01-10 _KPluginsList_Run_pluginexist { macroinfo = "Check to see if a kplugin is loaded"; $_NS_losded="Loaded \n\n"; $_NS_miss="Not Loaded \n\n"; pluginexist(bmpmenu) ? $_NS_losded=$_NS_losded."bmpmenu\n":$_NS_miss=$_NS_miss."bmpmenu\n"; pluginexist(bookmarks) ? $_NS_losded=$_NS_losded."bookmarks\n":$_NS_miss=$_NS_miss."bookmarks\n"; pluginexist(favorites) ? $_NS_losded=$_NS_losded."favorites\n":$_NS_miss=$_NS_miss."favorites\n"; pluginexist(fullscreen) ? $_NS_losded=$_NS_losded."fullscreen\n":$_NS_miss=$_NS_miss."fullscreen\n"; pluginexist(gestures) ? $_NS_losded=$_NS_losded."gestures\n":$_NS_miss=$_NS_miss."gestures\n"; pluginexist(hotlist) ? $_NS_losded=$_NS_losded."hotlist\n":$_NS_miss=$_NS_miss."hotlist\n"; pluginexist(JSBridge) ? $_NS_losded=$_NS_losded."JSBridge\n":$_NS_miss=$_NS_miss."JSBridge\n"; pluginexist(login) ? $_NS_losded=$_NS_losded."login\n":$_NS_miss=$_NS_miss."login\n"; pluginexist(macros) ? $_NS_losded=$_NS_losded."macros\n":$_NS_miss=$_NS_miss."macros\n"; pluginexist(privacy) ? $_NS_losded=$_NS_losded."privacy\n":$_NS_miss=$_NS_miss."privacy\n"; pluginexist(rebarmenu) ? $_NS_losded=$_NS_losded."rebarmenu\n":$_NS_miss=$_NS_miss."rebarmenu\n"; pluginexist(sessions) ? $_NS_losded=$_NS_losded."sessions\n":$_NS_miss=$_NS_miss."sessions\n"; pluginexist(spellcheck) ? $_NS_losded=$_NS_losded."spellcheck\n":$_NS_miss=$_NS_miss."spellcheck\n"; pluginexist(toolbars) ? $_NS_losded=$_NS_losded."toolbars\n":$_NS_miss=$_NS_miss."toolbars\n"; pluginexist(update) ? $_NS_losded=$_NS_losded."update\n":$_NS_miss=$_NS_miss."update\n"; alert($_NS_losded . "\n" . $_NS_miss, "K-Meleon kplugins"); $_NS_losded = gsub( "Loaded \n\n", "", $_NS_losded ); $KPluginDLLs = gsub( "\n", ";", $_NS_losded ); alert($KPluginDLLs, "KPlugins loaded shown in variable $KPluginDLLs", INFO); } _KPluginsList_BuildMenu { if ($VERSION >= 33619974 ) { setmenu("&Tools",popup,"Misc. User Tools", Misc); setmenu("Misc. User Tools", macro, "pluginexist", _KPluginsList_Run_pluginexist, 0); } } # ----------------------------------------------------------- $OnInit=$OnInit."_KPluginsList_BuildMenu;"; $macroModules=$macroModules."KPluginsList;";
Quote
Zero3K
So, what about the issue with pages becoming black? That issue also seems to be related to it not exiting when being closed (instead, it stays open and uses almost 50% CPU).
Quote
adodupan
It is necessary to add new functions in macrolanguage:
GetStringFromName()
formatStringFromName()
Quote
adodupan
Can you offer a way to get a list of loaded kplugins (this function is necessary to add in jsbridge also)
Quote
adodupan
Function RunMacro crashes kmeleon, or does nothing.
Quote
adodupan
Is there any info about this?
What i saw:
-it is possible to declare a function with parameters,
-function can return a value,
-declared variable stays as a local variable;
Something more?
Is it possible to call these functions from setmenu?
Quote
smallhagrid
Have installed Groups2 and it is terrific.
I hide the menu bar and instead use the little gear thingy to access the menu entries so as to have just a single bar with all the things I need. Groups2 does not add itself to that batch of menu items. Any chance it may be made to do so in the future ??
Quote
Dorian
Macro is not dependent of gecko and this should not change. I understand what you want to do and check what can be done.
Quote
Dorian
Quote
adodupan
Function RunMacro crashes kmeleon, or does nothing.
Seems to work for me. Any sample code?
const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); var data = ' tryrunmacro{ alert("test try runmacro", "test try runmacro"); } setmenu(Misc, macro, "test try runmacro", tryrunmacro); '; JSB.SendMessage('macros', 'test', 'RunMacro', data);
const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); var data1 = ' runmacrocrasheskm1{ setmenu(Misc, macro, "test runmacro crashes km", runmacrocrasheskm2); } runmacrocrasheskm2{ alert("test runmacro crashes km", "test runmacro crashes km"); } '; JSB.SendMessage('macros', 'runmacrocrasheskm1', 'RunMacro', data1);Then paste this code,
const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); var data2 = '&runmacrocrasheskm1;'; JSB.SendMessage('macros', 'runmacrocrasheskm2', 'RunMacro', data2);Or try this, it doesn't matter:
const JSB = Components.classes['@kmeleon/jsbridge;1'].getService(Components.interfaces.nsIJSBridge); var data3 = '&runmacrocrasheskm2;'; JSB.SendMessage('macros', 'runmacrocrasheskm2', 'RunMacro', data3);
Quote
siria
UH OH...
That just rang a huge bell for me (and probably other macrowriters too):
Quote
smallhagrid
Have installed Groups2 and it is terrific.
I hide the menu bar and instead use the little gear thingy to access the menu entries so as to have just a single bar with all the things I need. Groups2 does not add itself to that batch of menu items. Any chance it may be made to do so in the future ??
So far only was aware that the "File Open" function is not available in the "compact menu" at all, in the past along with "Offline" but that one is finally fixed
But there's probably more stuff missing - and especially all macros which are placed into "Main", "&File", "OpenSave" etc.!! :O
Wondering... what if simply the complete "&File" menu would get added to the CompactMenu, as Popup Flyout menu?
Would that possibly create any conflicts, if submenus are double then?
Better yet, could that be added out-of-box already?
Quote
adodupan
It seems to me, it is great to be you
Are you trying to test this function at all?
You can use whatever you want, if i really need to recommend, then i recommend your macro code here.
Quote
adodupan
Dorian you are very funny boy. Is there some law about compatibility you mentioned?
Who needs such compatibility, and who cares anyway? Perhaps some serious user
Part of regret is even more funny.
You didn't break your arm or something like that, then you have reason to regret, it's just coding.
Quote
Slickone
Clicking on the plus next to Today, Yesterday, etc does nothing. Why?
I do have remember history checked.
Quote
siria
UH OH...
That just rang a huge bell for me (and probably other macrowriters too):
Quote
smallhagrid
Have installed Groups2 and it is terrific.
I hide the menu bar and instead use the little gear thingy to access the menu entries so as to have just a single bar with all the things I need. Groups2 does not add itself to that batch of menu items. Any chance it may be made to do so in the future ??
So far only was aware that the "File Open" function is not available in the "compact menu" at all, in the past along with "Offline" but that one is finally fixed
But there's probably more stuff missing - and especially all macros which are placed into "Main", "&File", "OpenSave" etc.!! :O
Wondering... what if simply the complete "&File" menu would get added to the CompactMenu, as Popup Flyout menu?
Would that possibly create any conflicts, if submenus are double then?
Better yet, could that be added out-of-box already?
Yes it did work.Quote
JamesD
Quote
Slickone
Clicking on the plus next to Today, Yesterday, etc does nothing. Why?
I do have remember history checked.
Did clicking on the plus work before? Yes, if the plus appears, then you do have history. If one were to clear history, then the plus will go away until there is new history.
I do not have a problem with my history. Have you changed any file in this directory? root\browser\chrome\kmeleon\content\history
Quote
Slickone
I've definitely never done anything in that folder. Why?
The newest dated files there are 9/26/2015. Since the history file isn't stored there, what's are those files for?
Quote
JamesD
K-Meleon 76 beta 3 uses the 38.5.0esr engine. It is likely that it can be upgraded to use the 38.6esr engine? Seems like Mozilla has fixed a number of bugs with the 38.6 engine.
http://www.zdnet.com/article/mozilla-firefox-44-update-fixes-critical-vulnerabilities/?tag=nl.e539&s_cid=e539&ttag=e539&ftag=TRE17cfd61
I know it sounds simple, but I have no idea how much work would be required. Just a hope on my part.
Quote
Dorian
There will be another delay for the RC. The ssd containing kmeleon has died. I have a partial build with the latest changes but I've lost the source code of those changes. It happened after building 38.6. Two months ago the code was still on a 6 years old HDD, guess I shouldn't have moved it.
Quote
Dorian
There will be another delay for the RC. The ssd containing kmeleon has died. I have a partial build with the latest changes but I've lost the source code of those changes. It happened after building 38.6. Two months ago the code was still on a 6 years old HDD, guess I shouldn't have moved it.