Awesome. I really like IUP and the ease it can do things. Easy GUIs are great for developing ideas that can be later implemented as a full-fledged plugin. What's even more exciting is that IUP is in constant development. I've been talking to the head honcho over there and things like grid layouts (similar to html tables) will be released in January in the form of IUP beta 3.

Hi Hao, can you expand upon what you did to try and compile? I would highly suggest talking to Antonio Scuri, the main developer. He answered me multiple times within a day. His email can be found all over the site, like Here. My question is why do you need to rebuild the file? Can't one of the dll's be used? I think I don't know enough about the plugin system to fully understand your concern.

@simpleinventor
May I answer?
Because luamacros is linked lua statically. I just want to keep consistent. And tuning IUP to k-meleon may be needed.

BTW: I have worked with pre-builded binary, I found a recipe to use iup with k-meleon.
1. Get iup binaries "iup2_5_Win32_dll.tar.gz" and lua binaries "lua5_1_1_Win32_bin.zip" from luaforge, and unpack them.
2. Copy all dlls except "iuplua51.dll" in these archive to k-meleon's folder. Copy "iuplua51.dll" to your lua path (profile).
3. Eval 'require "iuplua51"; dofile("sample.lua")' from K-Meleon.

Uninstall recipe is just remove all iup*.dll and lua5.1.dll in K-Meleon's folder.

Because some reason (dll, mainloop, thread) this recipe will have trouble. For example, luamacros expects dialogs are modal, because luamacros is based on single thread model.

Would you please add one more function in the luamacro plugin? To give every tab an 'id' number, so it could be easily recognized. In K-Meleon tab versions, every tab have a pointer associated with it, so I think this could be done in luamacros plugin. Thank you.

I 'm not very familiar with all the codes in tab version. Dorian told me "the lparam for WM_SWITCHTAB, WM _CREATETAB, WM_CLOSETAB is a pointer to a tab" as the hint. And I hope it could help you figure it out. Thank you.

@mark307,
Should be fine as long as the new luamacros plugin can record the position of tabs corretcly. The basid idea to use this function is to write a session lua macros so when K-Meleon crashes, it's able to recover the whole session.

I did my plan with CCF0.05.6.5. The result was disappointing, your hope will not be met in my plan.

- The plugin can't get tab position.
- When last tab is closed, then blank tab is created, but OnCreateTab function isn't called.
So in this case the plugin can't detect a tab.
- The plugin can't switch tab with message WM_SWITCHTAB. I misunderstood about it.

@ mark307,
I have no clue right now for this. Well, if the plugin can get the tab ID when On_switchtab, it should be OK for now. The APIs for tab exe is currently limited and we probably need to wait until Dorian release a new one. (I have the latest source code, and if you want to modify it to put more api, it would be very welcome.) We can try to make part of this function work and try to fix the bug afterwards. How about that? Thanks.

The source code of tabbed k-meleon is very interesting. I hope the source code to be opened to the public.
I'll wait for the progress of tabbed version. Probably I can only advise or report issuees, because I don't have well experience of C++ and knowledge of gecko. (I have learned gecko for saving page function since last year, but I don't get it yet. orz)
Thank you.

I have other problem. My k-meleon (1.02) has broken since updated with seamonkey. (I'm using old one.)

When luamacros.dll is loadded, windows shows blue. A null dummy dll named "luamacros.dll" can't be loaded too, it's very strange. If the plugin is builded as "luamacro.dll", it's fine. The combination of 1.1a2 and "luamacros.dll" is also fine. I can't tell why.

Well, I have thought to change the filename. The candidate is "luamacro.dll". Do you have an idea?
Thank you.

I posted. Sorry I couldn't find good non-Japanese file hosting service. Please push the second button to download.
kmplus-0.0.5.zip
And you may host my plugins/addon freely.
K-meleon 1.1 beta can load luamacros.dll (but it can't find macros.lua in profile, because API is changed). This crash probably occures only on unofficial GRE updated.

Additional jobs for renaming is only replacing "luamacros" to "luamacro" in some files. So the next release will be renamed in any case.

The next release will be 0.4 with 1.1 new API. It will be released after when 1.1 will be released.

That would be great. And according to Dorian, a new 1.1 tab exe will be out in the future after the release of 1.1. And I will update the K-MeleonCCF version according to that with the new luamacro plugin. Thank you for your work. And I will be very proud to host this plugin for everbody to download. I will post the download link later.