Development :  K-Meleon Web Browser Forum
K-Meleon development related discussions. 
how to set up a Meta-engine in K-meleon
Posted by: Justin Saquedosse
Date: February 09, 2005 02:25PM

On peut facilement fabriquer une metamoteur de recherche ( chaque moteur s'ouvre dans un onglet à partir d'une seule interrogation)
de la manière suivante (exemple avec Google, Yahoo, Teoma déja installés):
You can easily make up a metaengine ( each engine open itself in a layer from a single query) this way :
example with Google, Yahoo, Teoma already set up >

Il faut supprimer, dans le fichier macros.cfg, la macro SetSearch actuelle puis ajouter les suivantes :
You have to delete, in the macros.cfg file the present SetSearch macro then add the followings :

PromptAll{
setclipboard();$tmp=getclipboard();
$search=" all engines ";
$tip = "Search".$search."for : ";
$word = prompt($tip, $search);$word==$tmp?"":&AllEng;
}
SetSearch{
getpref(BOOL,"AllEngines")=="true"?pluginmsg(layers,"OpenURL",$eng.$word):&SetEngine;
}
SetEngine{
getpref(BOOL,$sl)==false ? &Unlocked:&Locked; &Sync;
}
AllEng{
setpref(BOOL,"AllEngines","true");
&Google;&Yahoo;&Teoma;
setpref(BOOL,"AllEngines","false");
}

ainsi que la commande suivante dans le menu Engines du fichier menus.cfg :
and the following command in the Engines menu of the menu.cfg file :

macros (PromptAll, All engines)


That 's all folks

Options: ReplyQuote


K-Meleon forum is powered by Phorum.