How To Make Your Caps Lock Key Search Google, Chrome OS-Style

We’ve shown you many alternate uses for your Caps Lock key in the past, but if you like the idea of Chrome OS’ search key (which replaces Caps Lock on the CR-48), here’s how emulate it on Windows using AutoHotkey.

Assuming you’ve already installed the shortcut-creating AutoHotkey , add this code to your main AutoHotkey script:

SetTitleMatchMode, 2
If WinExist(“ahk_class Chrome_WidgetWin_0”)
Send ^t
Send ^l
Run “C:\Users\Whitson Gordon\AppData\Local\GoogleChrome\Applicationchrome.exe”
sleep 100
Send ^t
Send ^l

Note that you’ll want to change “Whitson Gordon” to your own user name in the path to Google Chrome.

OS X, unfortuntaely, won’t let you maps the Caps Lock key to a specific function alone. However, with a bit of tweaking, we can get it so a simple shortcut like Caps Lock+Space will work just fine. First, create a new AppleScript with this code as the body:

tell application “System Events”
tell application “Google Chrome” to activate
keystroke “t” using command down
keystroke “l” using command down
end tell

Now, head into System Preferences > Keybaord and hit the Modifier Keys button. Change the Caps Lock key to perform a different action (I chose Control). Open up Quicksilver and create a new trigger as described here. Use something like Control+Space as your Hot Key. Now, Caps Lock+Space will open up a search-ready Chrome for you. Photo by Alex Harden.

Update: If you’re a Firefox user, AutoHotkey ninja Platypus Man has already created a tweaked version that works in Firefox. If you’re using Firefox on the Mac, just replace “Google Chrome” with Firefox.

The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.


Leave a Reply