Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Basically, I'd like to select some text in Notepad, Word, my RSS reader, what-have-you, and be able to lookup that phrase in Google. Are there any utilities that allow me to do that?

share|improve this question
    
Regularly want to do that. –  pelms Jul 11 '10 at 9:49
add comment

3 Answers

up vote 4 down vote accepted

A context menu would be difficult as they are generated by the application rather than the operating system.

However, you can use a simple AutoHotKey script to give you a keyboard shortcut instead. The script below should work in any situation where you can use Ctrl + c to copy to the clipboard.

#s::
MyClip := ClipboardAll
clipboard = ; empty the clipboard
Send, ^c
ClipWait 
Run http://www.google.com/#hl=en&q=%clipboard%
Clipboard := MyClip

This will set Win + s to copy selected text and Google it.

share|improve this answer
    
You can stick a MyClip := ClipboardAll at the start and a Clipboard := MyClip at the end, and it won't wipe out your clipboard. –  Phoshi Jul 11 '10 at 11:23
    
Good point Phoshi. –  pelms Jul 19 '10 at 8:42
    
This doesn't quite address the question of context menus. I for instance like to Google file names and folder names (e.g. check to see if some exe file is safe to run). For something like that, it should be doable. However, in a text editor or word processor, that might prove to be difficult. But this is a neat solution to a common problem, and I can verify that it does work. –  sammyg yesterday
    
How would you modify this so it doesn't empty the clipboard? I tried removing line 3, but it didn't work. –  sammyg yesterday
add comment

I don't know how to add Google Search to the Windows context-menu, but one can add it to the Windows Start menu.

See this article:

How To: Customize Windows Vista Start Menu Instant Search(Add Wikipedia,Google,Yahoo Search)

image


Another possibility is to use Dave's Quick Search Taskbar Toolbar Deskbar which allows you to drag selected text to the search widget:

image2

share|improve this answer
add comment

You might find some help here:

http://www.askvg.com/add-cascading-menus-for-your-favorite-programs-in-windows-7-desktop-context-menu/

I don't know if it'll let you do a contextual Google search, but it might let you put a shortcut to the Google search website (similar to the kinds of shortcuts you can put on the desktop or Start menu, for instance).

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.