5

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?

1
  • Regularly want to do that.
    – pelms
    Jul 11, 2010 at 9:49

3 Answers 3

4

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.

4
  • 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, 2010 at 11:23
  • Good point Phoshi.
    – pelms
    Jul 19, 2010 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.
    – Samir
    Apr 21, 2014 at 17:54
  • How would you modify this so it doesn't empty the clipboard? I tried removing line 3, but it didn't work.
    – Samir
    Apr 21, 2014 at 17:56
1

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

0

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).

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .