Google Hack – How to Search Google Without Copy And Paste!

by max on Wednesday, March 18th, 2009

google-copy-paste

The guys over at Lifehacker have done a marvelous job of eliminating copy & pasting keyword searches.  Whether you are on your MS Word or any other application, you can use AutoHotKey to eliminate the “paste” part when you want to search for something.

Sincerely,
Tired of Copy/Paste

Dear Tired of Copy/Paste,

Using the AutoHotkey scripting language we can throw together a tiny script that assigns the Ctrl+Shift+C shortcut key combination to automate coping the text to the clipboard, and then opens your default web browser with the Google search for the selected text.

You’ll want to start by downloading and installing AutoHotkey, and then simply create a new file with the *.ahk extension and paste in the following text, which uses the magic %clipboard% variable in the Google URL to pass in the search terms.


#InstallKeybdHook
#Persistent
#HotkeyInterval,100
SetKeyDelay, -1
^+c::
{
Send, ^c
Sleep 50
Run, http://www.google.com/search?q=%clipboard%
Return
}

Once you’ve saved the file you can run it by double-clicking on the script, which will add a new icon to the system tray. If you want to remove the tray icon and have the script run completely in the background, add the following line to the beginning:

#NoTrayIconNow that the script is active, you can simply select text in any application, use Ctrl+Shift+C, and you’ll instantly see a Google search window for that term. If you want to use a different search engine, you can simply modify the URL line, or add a new hotkey (see the AHK Hotkey documentation).

via lifehacker

Rate

1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

ad ad
ad ad


20,000 GPS POI's $9.99

Related News and Resources

Other Interesting News From Our Friends

blog comments powered by Disqus
If you like this post then please subscribe to my full feed RSS.

You can also subscribe by E-mail by filling out your name and E-mail below:

Name: Email:


Got a new hack, DIY, howto, or gadget? Tip us here.

Try Goohack to find a new Hack:


Featured Sites From Zedomax Blog Network