Based on comments and right button search request by Tim_Marshall + @ than
I thought some of you might like to test out the following simple AHK code
just save it as say SEARCH.AHK
[UPDATE] there is an alternative method using Windows scripting (no need for AutoHotKey) in thread [Advanced Tips] Pass selection to another app e.g. Web Search
; Web lookup for any text including SumatraPDF
; Highlight some text then press Alt & Right Button
!RButton::
; Save and clear clipboard
StoredClipboard := ClipboardAll
Clipboard:= ""
; Send copy command (^c) to collect selected text
SendInput, ^c
; Wait a mo
ClipWait, 1
Run https://www.startpage.com/do/dsearch?query=%Clipboard%
; Reset Clipboard
Clipboard := StoredClipboard
Return
Save the above version or right click here to download a similar version by Nod5 as described later you can replace the startpage line with your preferred search engine e.g.
Run http://www.google.com/search?q=%Clipboard%
you can even change browser
Run "C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" "http://www.google.com/search?q=%Clipboard%"
NOTE:- that’s all on one line and in this case the search needs to be enclosed in quotes
you can also try
Run https://en.wikipedia.org/wiki/%Clipboard%
or a translator or dictionary or … let your imagination take you there
If you don’t have latest portable AutoHotKey Zip
Download from https://autohotkey.com/download/ahk.zip
save zip file currently (April 2014) its AutoHotkey_1.1.28.02.zip
extract its contents and drop SEARCH.AHK onto
AutoHotkeyU32.exe
Tested with XP up to Win8.1 Pro x64 using several browsers etc.
(can’t test on Win 10 at present) if all is well there will be a green H icon in the Icon tray
If you want a second choice such as translate you can add to the end of the above text (after the return) this section
; Web translate for any text including from within SumatraPDF
; Highlight some text then press AltGR Key (that's the alt key to right of spacebar)
*RAlt::
; Save and clear clipboard
StoredClipboard := ClipboardAll
Clipboard:= ""
; Send copy command (^c) to collect selected text
SendInput, ^c
; Wait a mo
ClipWait, 1
Run https://translate.google.com/?hl=en&q=%Clipboard%
; Reset Clipboard
Clipboard := StoredClipboard
Return