General :
K-Meleon Web Browser Forum
General discussion about K-Meleon. Questions about how to setup it, macro coding, all related to its usage and the project itself, including this website.
K-MeleonCCF 0.05.5.9
Posted by:
Hao Jiang
Date: June 13, 2006 02:53AM
This is the preview version of the upcoming 0.05.6.1 which will probably base on the SM1.0 RC2. And there 're a few new things in this version.
[Release Notes]
+ Only lua macros based version. (The classis macro plugin is removed from this version and most of the macros are transfered into lua macros)
+ Two lua macros preference panel included (still in test since I have to decide which one will appear in the final version. And there 're still a lot of work need to be done on it)
+ All lua macro scripts are put in lua\ directory
+ Several plugins are updated with RC1. The bookmark root bug is fixed.
[Download]
http://www-personal.engin.umich.edu/~haojng/K-MeleonCCF0.05.5.9.exe
Re: K-MeleonCCF 0.05.5.9
Posted by:
Hao Jiang
Date: June 13, 2006 02:55AM
Many previous lua macros are rewritten including the group macros to make it support much more functions including startup groups, last session reload. Although it 's written ugly from my point of view, it should work well for now.
Hao
Re: K-MeleonCCF 0.05.5.9
Posted by:
Hao Jiang
Date: June 13, 2006 02:56AM
And BTW, with the completely remove of macro plugin, you will find this version is faster than the previous CCF 0.05.5.3 version.
Hao
Re: K-MeleonCCF 0.05.5.9
Posted by:
ndebord
Date: June 13, 2006 04:27AM
Hao,
I've been following the lua vs traditional macros issue with quite some interest. So, might I venture to guess, that you've come down on the side of the traditional macros being a real PITA and it is more than time to move on and go with Lua?
N
Re: K-MeleonCCF 0.05.5.9
Posted by:
ndebord
Date: June 13, 2006 04:57AM
Hao,
Runs like a bat out of hell now on my W98se old laptop!
Preliminary report.
I like Adanced Preferences better than the Configuration Wizard (so far with very limited testing).
Small little typos:
Rename Advanced Preference in the Main Menu to Advanced Preferences
Rename Mouse Gestrures to Mouse Gestures
How to substiute download manager info to use Wackget instead? (Among other issues to be worked on later of course.)
N
Re: K-MeleonCCF 0.05.5.9
Posted by:
ndebord
Date: June 13, 2006 05:19AM
Hao,
Wow! Moving over my macros from KM 0.9 to CCF 0.0.5.5.9 looks like quite an undertaking!
<whine>
N
Re: K-MeleonCCF 0.05.5.9
Posted by:
Hao Jiang
Date: June 13, 2006 05:21AM
@ndebord,
I think lua macros is more flexible and can do more things than macros. Some of lua macros are just copies of macros in this version with some modifications. And there 're still a few more which are totally rewritten although they are needed to be modified to be more lua like

Anyway, I 'm still learning lua at this moment. Its table datatype is really powerful. rmn is a real professional at this point. I am only a newbie in this field anyway.
Hao
Re: K-MeleonCCF 0.05.5.9
Posted by:
Hao Jiang
Date: June 13, 2006 05:31AM
And it's still a beta version so there might be many bugs around out of lua macros. (At lease I found a few, need to change most of the variables to local I think.) So please let me know if you found any bugs. Thanks.
Regards,
Hao
Re: K-MeleonCCF 0.05.5.9
Posted by:
ndebord
Date: June 13, 2006 11:44AM
Hao,
I'll post anything I find. Point my in directions you think need looking into, if you can.
N
Re: K-MeleonCCF 0.05.5.9
Posted by:
ndebord
Date: June 13, 2006 02:06PM
Hao,
Search engine macro(s) needs to be tweaked. Using the <Ctrl> <G> hotkey to search on keywords entered into the URL dialog box doesn't work on this KM.
N
Re: K-MeleonCCF 0.05.5.9
Posted by:
User of Only Win 98
Date: June 13, 2006 06:57PM
As ndebord says it really does run like a bat out of hell on Win 98
Re: K-MeleonCCF 0.05.5.9
Posted by:
mark307
Date: June 14, 2006 02:09PM
@Hao
WoW! Unbelievable! I admire your work. I'm glad to see the lua only version. Many thanks.
But I'm warrying that it may be too early to switch and to remove macro. Traditional macro has many users and many assets, and macro is still progressing.
Issue report:
* sync UIs and prefs at startup.
* Menu "Block Images", "No Proxy", shows error.
* prompt function returns nil, when user clicks cancel. Many commands shows error at this point. "v = prompt(q, t, d) or d" is useful idiom, if function doesn't need error handling.
* kmplus.dll should be on library folder. Sorry, I missed on path.lua, correct it.
-package.cpath = package.path .. ";" .. PREFPATH .. "\\lua\\?.dll"
+package.cpath = package.cpath .. ";" .. PREFPATH .. "\\lua\\?.dll"
Thanks.
Re: K-MeleonCCF 0.05.5.9
Posted by:
ndebord
Date: June 15, 2006 01:52AM
mark307,
As parallel development continues, I see no reason why you can't have both macros in KM until such time as one or the other clearly wins the day. The traditional macro has a couple bugs that haven't been fixed, hence the desire to look for solutions elsewhere.
N
Re: K-MeleonCCF 0.05.5.9
Posted by:
Hao Jiang
Date: June 15, 2006 03:16AM
@mark307,
Something I 'm still confused and want to ask you, for use the kmplus dialog UI, when choose type = "button", what 're the possible return values? I want to set different buttons for each dialog like "OK", "Cancel" and need to get different return values. Any idea on this? Thanks.
Many thanks to your work on lua macros and util plugins. I'm still a newbie on lua macros. Thank you for your advices.
Regards,
Hao
Re: K-MeleonCCF 0.05.5.9
Posted by:
mark307
Date: June 15, 2006 02:22PM
ndebord,
I had interest for lua based version as technical challenge. Who decides whether to include a plugin in a build is the developer (and users), isn't me. Anyway I'm very happy that my plugin is accepted by someone.
I don't see both macros in competition. Lua is third solution to extend km.
Hao,
choose type = "button", what 're the possible return values?
That is 1st value returned by dialog function. It is used in prompt.lua.
On dialog_demo, IDBUTTON ("OK") and IDLIST1 (on middle of left, double click item) and IDSTATIC2 ("click!") can close dialog and return their id that are shown as "ID:" on messagebox.
Issue report:
* Preference "kmeleon.plugins.layers.load" should be false in default.
Thanks.
Re: K-MeleonCCF 0.05.5.9
Posted by:
rmn
Date: June 15, 2006 07:33PM
Hao Jiang,
You shouldn't hijack the event macros. :-)
Instead of...
function OnOpenWindow(hwnd)
title, url = GetDocInfo(hwnd)
if url=="about:blank" then
id("ID_SELECT_URL")
end
end
...you should require "hook", then...
if hook then
hook.add(OpenWindowHook, function()
title, url = GetDocInfo(hwnd)
if url=="about:blank" then
id("ID_SELECT_URL")
end
end)
end
And so on with other events (OnStartup etc.). That way, other modules can add their own event handlers.
I don't know why you need to check `if hook...` first, though. I'm only following the examples provided.
Re: K-MeleonCCF 0.05.5.9
Posted by:
mark307
Date: June 17, 2006 10:29AM
rmn,
I don't know why you need to check `if hook...` first
It prevents km showing error if hook.lua is broken or replaced by other one. It isn't needed in most cases at this time.
another hook usage without anonymous function
local function OnOpenWindow(hwnd) -- declare as module local
-- Do something
end
hook.add(OpenWindowHook, OnOpenWindow)
Thanks.
Re: K-MeleonCCF 0.05.5.9
Posted by:
Still Using Win 98
Date: June 17, 2006 01:31PM
Hao,
What all is needed to get as many functions for this build as
possible on Win 98? Where can these be downloaded?
Re: K-MeleonCCF 0.05.5.9
Posted by:
Lasa
Date: June 17, 2006 01:56PM
@ User of Only Win 98
It really is fast but I have many missing functions.
I am in need in things such as Still Using Win 98
above. Thanks Hao
Re: K-MeleonCCF 0.05.5.9
Posted by:
Hao Jiang
Date: June 17, 2006 03:47PM
@Lasa,
What specific function you want to use in KM?
Regards,
Hao