Use AutoHotKey To Google Inside Any Application
So I started getting back into autohotkey to increase productivity with some office tasks, and I thought of a useful script to keep Google a second away in any application. I had seen a few scripts out there to bring up Google, but I wanted to take a step further and allow you to highlight a word, then Google that without having to then copy and paste it again.
First things first, go to autohotkey.com and download autohotkey. Then decide where you want to store your scripts, right click, mouse over new, then select AutoHotkey Script. Then change the name to whatever you would like, then copy and paste the following code after the pre-inserted text.
#g:: ;Google something clipboard = ; Empty the clipboard Send ^c ;Copy the current text that is highlighted ClipWait ;Wait to make sure we have text in the clipboard Run http://www.google.com/search?q=%clipboard% ;Google clipboard return
Now save and double click the script. This will load it up, and allow you to Google a highlighted word using Win + G. Note : If you hit Win + G with nothing highlighted, it will wait until the clipboard has contents, then google.
Tried this along with other methods as this is SUPER useful,I’m always copying and pasting in browsers. Problems:
every Send ^c isn’t copying to the clipboard
ClipWait is not recognised
(Version v1.1.13.00)
tried SendPlay, SendInput.. investigating.
Currently using this with Version 1.0.48.05 and is working. Was this the only command in your script, or was there another one above it which wasn’t ‘return’-ed?