Search Google Even Faster

2009 July 1
by Bruce

This script (thanks to Meta Robert for the idea), is a great way to seach google even faster.  I t basically takes what’s highlighted and you hit Ctrl + Alt + R and it’ll search Google in your browser whatever you have highlighted.

I do a lot of lookups in Google and Wikipedia. What this code does is copy anything I have selected, then open Wikipedia and Google with relevant search results.

  1. The first line assigns the key sctrl+alt+r (I chose “R” for ‘Research)
  2. The second instructs AutoHotKey to “Copy” by sending the copy shortcut of “Ctrl+C”
  3. The third line basically says “wait here until the copy is done”
  4. The fourth and fifth lines are a bit tricky. I went to Google and Wikipedia, ran searches, and copied their URLs. It was a simple task finding my searches embedded in the URL. Note the %clipboard% reference in each line. You can probably guess that this is the place the “copy” was stored from line 2. I just put %clipboard% in place of the search strings I found in there.
  5. The fifth line? If you have no scripting or programming background, this just says, “Done, go back to whatever you were doing”

You can delete the Wikipedia portion out of the code if you’d like too.

Download the script here.

One Response leave one →
  1. 2009 October 28
    Guest permalink

    I recently started using AHK. In my opinion AHK combines batch files and vbs and takes the functionality further. Plus its easier to understand. I use Google alot. So I downloaded this script and tested it. WORKS GREAT!! The wikipedia search I will keep becuase it is how I found AHK.
    To the author,
    Thankyou

Leave a Reply

Note: You can use basic XHTML in your comments. Your email address will never be published.

Subscribe to this comment feed via RSS