This is what I use, if you press Alt+H, it will copy anything highlighted and past it into the edit control (of course you can edit what's automatically copied into there if you like) and in the gui there are 5 buttons, one to search autohotkey, one for google, one for wikipedia, one for dictionary and thesaurus (dictionary and thesaurus uses m-w.com).
When the interface pops up, you can press alt+g for google, alt+w for wikipedia, and so on.
Code:
/*
Alt+h Prompts for highlighted word to search at AutoHotkey, Google, Wikipedia, Dictionary, Thesaurus
*/
!h::
Send ^c
Send {Shift Down}
Send {Home}
Send {Shift Up}
Gui, Add, Text, x10 y10 w415 h20 Center, Search Autohotkey's site documentation or search from Google:
Gui, Add, Edit, yp+20 wp vSearch,
Gui, Add, Button, yp+30 w77 h26 gfSearch, &AutoHotkey
Gui, Add, Button, xp+85 wp hp ggSearch, &Google It!
Gui, Add, Button, xp+85 wp hp gwSearch, &Wikipedia
Gui, Add, Button, xp+85 wp hp gdSearch, &Dictionary
Gui, Add, Button, xp+85 wp hp gtSearch, &Thesaurus
Gui, Show, AutoSize Center, Quick Search
Send ^v
Return
fSearch:
Gui, Submit
Gui, Destroy
Run
, % "http://www.autohotkey.com/search/search.php?site=0&path=&result_page=search.php&query_string="
. RegExReplace(RegExReplace(Search,"#","`%23"),A_Space,"`%20")
. "&option=start&search=Search"
return
wSearch:
Gui, Submit
Gui, Destroy
Run
, % "http://en.wikipedia.org/w/index.php?title=Special%3ASearch&search="
. RegExReplace(RegExReplace(Search,"#","`%23"),A_Space,"`%20")
. "&fulltext=Search"
return
gSearch:
Gui, Submit
Gui, Destroy
Run, http://www.google.com/search?q=%Search%
return
dSearch:
Gui, Submit
Gui, Destroy
Run, http://www.merriam-webster.com/dictionary/%Search%
return
tSearch:
Gui, Submit
Gui, Destroy
Run, http://www.merriam-webster.com/thesaurus/%Search%
Return
GuiClose:
Gui, Destroy
return