K-Meleon
KMeleonWiki > Resources > MacroLibrary > MacroLibrary2 > 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.
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); }
Your Toolbar { Search { macros(search_button) Search Google toolhot.bmp[5] toolcold.bmp[5] tooldead.bmp[5] } }
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