Tech Talk A software developer on all things tech, and then some

11Dec/121

AutoHotkey – My Top Scripts

AutoHotkey, my new favorite hotkey/snippet tool. It can do things from opening your frequently used folders or applications with a few button presses, to replacing lines and words with snippets, or even interacting with your mouse. If you haven't started using AutoHotkey yet to increase your efficiency, start. You will notice immediately a decrease in time spent doing menial tasks, giving you more time to focus on the important stuff while also ensuring you finish those important projects on time. This tool allows for total customization for the adventurous and can be done with little to none scripting knowledge. Now, if I've caught your interest with AutoHotkey, feel free to put together some of the following code, and get started with my favorite AutoHotkey scripts!

BTW, if you need a quick start, either follow AutoHotkey's tutorial, or read my first post about Googling anywhere with AHK

28Nov/122

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.

   
%d bloggers like this: