K-Meleon

KMeleonWiki > Resources > MacroLibrary > Search Button

Submitted by: mjm - mjm189»hetnet



Notes: A simple combining of search & go macros to let you search Google from the URL bar without having to wait for a popup. Just type your query in the URL bar and hit the search button.

In Macros:

search_button {
    $google = "http://www.google.com/search?q=";
    $oldclip = getclipboard();
    id(ID_SELECT_URL?);
    id(ID_EDIT_COPY?);
    $query = getclipboard();
    setclipboard($oldclip);
    open($google . $query);
}


In Toolbars:

Your Toolbar {
   Search {
      macros(search_button)
      Search Google
      toolhot.bmp5?
      toolcold.bmp5?
      tooldead.bmp5?
   }
}


User Comments:

Comment from Andres:

And actually, one could make a whole toolbar with different search buttons, using the same logic! That's a great macro. I am very satisfied with the result: http://www.bahamapress.org/andres/kmeleon/km07.png


Does this work in KM 0.8? I tried to install, and just got the search maginfying glass, wit h no text or input box.
This does not serve as an extra search bar. It allows you to type your search into the URL bar and click on the button which performs the search.

K-Meleon

(c) 2000-2010 kmeleonbrowser.org. All rights reserved.
design by splif.