General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Display page in Maxthon browser instead of IE
Posted by: Mello
Date: October 17, 2011 07:57PM

Is there a way to set this up please?

Options: ReplyQuote
 
Posted by: adodupan
Date: October 17, 2011 08:32PM

 



Edited 1 time(s). Last edit at 02/29/2016 07:06PM by adodupan.

Options: ReplyQuote
Re: Display page in Maxthon browser instead of IE
Posted by: Mello
Date: October 17, 2011 08:50PM

Thanks, I guess that is for stable release, I forgot to mention I am using 1.60 beta - I don't see that option under tools.

Options: ReplyQuote
Re: Display page in Maxthon browser instead of IE
Posted by: JamesD
Date: October 18, 2011 03:03AM

@ Mello

I have made a macro which will work for Maxthon3 in KM 1.6.0 beta2. I just took the ie.kmm macro and changed all the names, values, etc from ie to maxthon. You can find the macro compressed with 7-Zip here.

http://dl.dropbox.com/u/1522294/Maxthon3.7z

The only hard part was that I did not remember that the maxthon exe file was in a folder "BIN" under the Maxthon3 folder. Once I cleared that up in the code, everything was easy.

Just extract the Maxthon3.kmm file to either your macros or usermacros folder.

Hanlon’s razor is an eponymous adage named after Robert J. Hanlon that states: “Never attribute to malice that which is adequately explained by stupidity.”

JamesD

Options: ReplyQuote
Re: Display page in Maxthon browser instead of IE
Posted by: ndebord
Date: October 18, 2011 03:32AM

Quote
Mello
Thanks, I guess that is for stable release, I forgot to mention I am using 1.60 beta - I don't see that option under tools.

Mello,

adodupan's macro that allows you to load up all the browsers of your choice with just this one macro called browser.kmm.

http://kmeleonbrowser.org/forum/read.php?9,116521,119594#msg-119594

In my case that means Firefox, Seamonkey, IronPortable, Opera, QTWeb, IE6, Maxthon...

N



Edited 1 time(s). Last edit at 10/18/2011 03:35AM by ndebord.

Options: ReplyQuote
Re: Display page in Maxthon browser instead of IE
Posted by: Mello
Date: October 18, 2011 11:49AM

Thanks a lot JamesD. Works a treat.

Thank you too ndebord, I copied browser.kmm into macros but I don't see anything in browser, I don't understand the last post of the thread you linked.


Now main problem I have is that official km, beta 1.60 and 1.7a2 keep locking up on my 64-bit win 7 laptop. Whereas they work fine on my (x86) win7 netbook.

Hao's last ccf me 0.97 (April 2011) is the only k-m that doesn't lock up on my 64-bit machine.
Why is that I wonder? I've tried compatibility mode.

Options: ReplyQuote
Re: Display page in Maxthon browser instead of IE
Posted by: ndebord
Date: October 18, 2011 04:21PM

Mello,

Last part of post was to point you to the thread. Here is the macro. It is not installed, you just have to copy it into the macros folder and restart the browser.

---------cut here--------

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
#
# browser.kmm v.0.1 --------------------------------------------------------------------
# Copy browser.kmm into your macros folder, usually c:\program files\K-meleon\macros
# Dependencies : main.kmm
# Preferences : kmeleon.plugins.macros.browser.
# Author : adodupan
#
#The end user adds an item on the menu for every browser or delete any item from the menu.
# It is not necessary to restart km, after selecting the exe file, the item will appear in the menu.
# To add items:
# Tools > Open in browser > Add a new browser
# To open a website you need to right click.
# ----------------------------------------------------------------------------------------
$macroModules=$macroModules."browser;";
$OnInit=$OnInit."_browser_01;_browser_02;";
$__browser_10="kmeleon.plugins.macros.browser.";

_browser_01{
setmenu("&Tools",popup,"&Open in browser",2);
setmenu("&Open in browser",macro,"&Add a new browser",_browser_04,0);
setmenu("&Open in browser",separator,-1);
}
_browser_02{
$List=getpref(STRING,$__browser_10."items"); $ExecMacros="_browser_03"; &ExecMacros_List;
}
_browser_03{
setmenu(DocumentOpenExternal,macro,"Open in ".$ListItem,"_browser_07(".$ListItem.")");
setmenu(LinkOpenExternal,macro,"Open in ".$ListItem,"_browser_08(".$ListItem.")");
setmenu(_Go_Open,macro,"Open in ".$ListItem,"_browser_09(".$ListItem.")");
setmenu("&Open in browser",macro,"Delete ".$ListItem,"_browser_05(".$ListItem.")");
}
_browser_04{
macroinfo=_("Set the name for the new browser!");
$__browser_11=prompt(_("The name will appear as an item in the menu"),_("Name of browser"),"The name should be unique!");
if($__browser_11=="The name should be unique!" or index($__browser_11,";")>-1 or index(getpref(STRING,$__browser_10."items"),$__browser_11.";")>-1) {
$__browser_12=confirm("Try again with another name!",_("Name of browser"),YESNO,QUESTION);
$__browser_12=="YES"?&_browser_04:0;
}else{
setpref(STRING,$__browser_10."items",getpref(STRING,$__browser_10."items").$__browser_11.";");
$__browser_13=$__browser_11; &_browser_06; &_browser_02;
}
}
_browser_05{
macroinfo=_("Delete from the list");
$__browser_14=$ARG;
setpref(STRING,$__browser_10."items",sub($__browser_14.";","",getpref(STRING,$__browser_10."items")));
getpref(STRING,$__browser_10."items")==""?delpref($__browser_10."items"):0;
delpref($__browser_10.$__browser_14.".path");
setmenu(DocumentOpenExternal,macro,"Open in ".$__browser_14,);
setmenu(LinkOpenExternal,macro,"Open in ".$__browser_14,);
setmenu(_Go_Open,macro,"Open in ".$__browser_14,);
setmenu("&Open in browser",macro,"Delete ".$__browser_14,);
}
_browser_06{
setpref(STRING,$__browser_10.$__browser_13.".path",promptforfile("",$__browser_13,"*.exe"));
if(getpref(STRING,$__browser_10.$__browser_13.".path")=="") {
delpref($__browser_10.$__browser_13.".path");
setpref(STRING,$__browser_10."items",sub($__browser_13.";","",getpref(STRING,$__browser_10."items")));
getpref(STRING,$__browser_10."items")==""?delpref($__browser_10."items"):0;
}
}
_browser_07{
macroinfo=_("Open in this browser");
$__browser_15=$ARG;
exec(getpref(STRING,$__browser_10.$__browser_15.".path")." ".$URL);
}
_browser_08{
macroinfo=_("Open in this browser");
$__browser_16=$ARG;
exec(getpref(STRING,$__browser_10.$__browser_16.".path")." ".$LinkURL);
}
_browser_09{
macroinfo=_("Open in this browser");
$__browser_17=$ARG;
$__browser_18=$URLBAR; $__browser_18==""?$__browser_18=$URL:0;
exec(getpref(STRING,$__browser_10.$__browser_17.".path")." ".$__browser_18);
}

---------cut here--------

N

Options: ReplyQuote
Re: Display page in Maxthon browser instead of IE
Posted by: Mello
Date: October 18, 2011 08:59PM

Thanks

I copied that text into a txt file renamed browser.kmm and placed it in k-m 1.60 macro folder. Restarted.

Nothing.

Options: ReplyQuote
Re: Display page in Maxthon browser instead of IE
Posted by: ndebord
Date: October 18, 2011 09:29PM

Quote
Mello
Thanks

I copied that text into a txt file renamed browser.kmm and placed it in k-m 1.60 macro folder. Restarted.

Nothing.

Main Menu, go to Tools, look for open in browser, then Add a new browser, one by one.

N



Edited 1 time(s). Last edit at 10/18/2011 09:30PM by ndebord.

Options: ReplyQuote
Re: Display page in Maxthon browser instead of IE
Posted by: Mello
Date: October 18, 2011 10:09PM

Got it - Clever stuff!

Thanks very much for your help,

Options: ReplyQuote
Re: Display page in Maxthon browser instead of IE
Posted by: ndebord
Date: October 19, 2011 04:11AM

Quote
Mello
Got it - Clever stuff!

Thanks very much for your help,

all hail adodupan. <g>

N

Options: ReplyQuote


K-Meleon forum is powered by Phorum.