I am desperately seeking for a way to duplicate a tab (preferably with middle click) and came across CloneLayers.kmm http://kmeleon.sourceforge.net/wiki/KmmCloneLayers .
But no matter where I put the .kmm file and what I do, the makro doesn't do anything.
I'm using K-Meleon 1.5.2 (de). Makro execution is activated, of course.

Who can help me?

Or is there even a better way to have a tab duplicated with middle mouse-button click?

@ desga2: Thank you for the correction, but I'm afraid I still have to disappoint you - this is not working. As far as I can see, the setting "kmeleon.tabs.OnMiddleClick" always has got the precedence.
And that would be a bug, wouldn't it?

Attention, you might be fooled if you have "kmeleon.tabs.OnMiddleClick=1" and "kmeleon.display.newWindowOpenAs=2" configured. But instead of duplicating the tab which you have clicked on, it duplicates the current page.
Try middle-clicking on a tab in the background, you will see what I mean.

QuoteJamesD
Maybe I am having another senior moment, but I think you have to remove the underscore from the macro name to use it in setaccel.

setaccel("MButton","macros(_DuplicateTab_Focus)");
should be
setaccel("MButton","macros(DuplicateTab_Focus)");
and corresponding change in
DuplicateTab_Focus{

That's the way I tried it, but it still did not work.

No, underscore isn't the problem.

1) Problem is Preferences setting override the macro accelerators settings.
Try to use other accelerator like "CTRL MButton" or "ALT MButton".

2) With a macro you can't clone tabs in background, only tab in foreground. (This needed toolbar plugin implementation to mouse behavior in tab bar and created a new macro function to know what tab was clicked)

3)

QuoteDannyD
Attention, you might be fooled if you have "kmeleon.tabs.OnMiddleClick=1" and "kmeleon.display.newWindowOpenAs=2" configured. But instead of duplicating the tab which you have clicked on, it duplicates the current page.
Try middle-clicking on a tab in the background, you will see what I mean.

This is his normal use (remember 2).
And this isn't a bug, is a feature or behavior not implemented yet.

Please, I said you above that you can use Drag&Drop tabs in free space of toolbar to clone it and this work also with tabs in background. (Drag&Drop is more easy that any accelerator)

1) Problem is Preferences setting override the macro accelerators settings.
Try to use other accelerator like "CTRL MButton" or "ALT MButton".

2) With a macro you can't clone tabs in background, only tab in foreground. (This needed toolbar plugin implementation to mouse behavior in tab bar and created a new macro function to know what tab was clicked)

You are right. I did not know that a private macro could be called with setaccel statement.

"CTRL or SHIFT" do not help. The tab just gets closed instead of cloned. The selection from Preferences is used.

From the NavTab menu, the macro will clone in background. Both new items in the menu work.

Quotedesga2
2) With a macro you can't clone tabs in background, only tab in foreground. (This needed toolbar plugin implementation to mouse behavior in tab bar and created a new macro function to know what tab was clicked)

Hm, I observed otherwise: _CloneTab_BuildMenu{} as proposed by JamesD does work on tabs in the background.

Quotedesga2
3)

QuoteDannyD
Attention, you might be fooled if you have "kmeleon.tabs.OnMiddleClick=1" and "kmeleon.display.newWindowOpenAs=2" configured. But instead of duplicating the tab which you have clicked on, it duplicates the current page.

This is his normal use (remember 2).
And this isn't a bug, is a feature or behavior not implemented yet.

Sorry, what I meant was: Depending on your settings of "kmeleon.tabs.OnMiddleClick" and "kmeleon.display.newWindowOpenAs" it might appear as if the macro is working, while in fact it isn't.

Quotedesga2
Please, I said you above that you can use Drag&Drop tabs in free space of toolbar to clone it and this work also with tabs in background.

Yes, of course I can. It's just that I don't like Drag&Drop a lot, I like the middle-click which I'm used to. And I thought, "if there is one browser that I can twist as I want it, then it's this one..."