A Celebration of The Windows Key

September 1, 2005

I'm sure everyone knows that the Windows key brings up the Start Menu, but there are also a bunch of standard Windows key shortcuts built into Windows:

windows_key.gif + B

Set focus to first tray icon

windows_key.gif + D

Show Desktop

windows_key.gif + E

Windows Explorer

windows_key.gif + F

Find Files or Folders (aka Search)

windows_key.gif + M

Minimize All windows

windows_key.gif + ShiftM

Undo minimize all windows

windows_key.gif + R

Run...

windows_key.gif + Tab

Select Task

windows_key.gif + Pause/Break

System Properties

windows_key.gif + F1

Windows Help

windows_key.gif + L

Lock workstation

windows_key.gif + U

Utility manager (accessibility)

Where the default Windows key shortcuts end, WinKey* begins. Winkey lets you map additional Windows key shortcuts. It can't override the existing shortcuts, unfortunately, but you're free to map any key that isn't already mapped.

The advantage of the Windows key approach is that all of my most frequently used applications are exactly one key combination away; for example:

windows_key.gif + N

Launches Notepad

windows_key.gif + C

Launches command shell

Of course, you can go a lot further with hotkeys than just overloading the Windows key. That's where something like AutoHotKey comes in. However, I find that leveraging the built-in Windows key shortcuts, plus a handful of Windows key shortcuts I set up myself, covers 98% of my daily computer use.

But then there's that other 2%...

When I can't launch something with the Windows key, I fall back to the Start, Run (Windows+R) dialog. Run is passable, but not as helpful as it could be. Trying to perform a Start, Run, "word" won't launch Microsoft Word, for example. There are a number of third party replacements for Run that attempt to rectify that:

I've tried each and every one of these solutions, but nothing "stuck". I couldn't get myself out of the reflexive habit of Windows+R. Each of these apps has a nice set of additional features far beyond what the run dialog provides, but I never really used them.

In lieu of all these fancy solutions.. wouldn't it be nice if the Start, Run dialog was just a little bit smarter? That's when I stumbled across this blog post describing a very clever hack:

  1. Create a folder for your shortcuts under your user folder, eg, c:\documents and settings\username\shortcuts\
  2. Right click My Computer, click properties.
  3. Click the advanced tab.
  4. Click the Environment Variables button at the bottom of the tab.
  5. Under user variables, add a new variable named "Path".
  6. Enter %homedrive%%homepath%\shortcuts for the variable value.**
  7. Create shortcuts and plop them in the shortcuts folder you created.

Here's a quick snapshot that shows how to set up the per-user Path environment variable for the shortcuts folder:

How to set the user path variable to reference shortcuts from the Start, Run dialog

Now that I've set this up, I can type Windows+R, 2k3, Enter and Visual Studio 2003 launches! The only disadvantage-- and it's a minor one-- is that there's no autocomplete until you've typed the shortcut at least once. But for me, it's the best of both worlds: I can leverage the default Windows key accelerators and also have an unlimited number of "smart keywords" via my workhorse Run menu.

* Every time I see WinKey, I think of Winky Dinky dog. And I say it in that.. voice. I can't help myself.

** Here's a complete list of Windows XP/2000 environment variables the system can populate for you (eg, %date%). Gotta catch 'em all!

Posted by Jeff Atwood
64 Comments

Win-R winword works just fine over here.

Ah, right, it must be in the path already..

WinKey + U brings up the utility manager.

Thanks, I added that one to the list!

Win + Q sets gives focus to a floating inputfield, where i can type the following:

Yes, but I think all the same functionality can be delivered through Win + R and shortcuts.. if I create a shortcut named "g" with the command line..

"C:\Program Files\Internet Explorer\IEXPLORE.EXE" http://www.google.com/search?q=

I can then do Win+R, "g test" and get a google search for test. Well, test with a leading space, I haven't quite worked that part out yet..

Jeff Atwood on September 2, 2005 2:02 AM

Another way of programs to execute from the Run dialog without adding them to the PATH is to add a Registry key under "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\App Paths". I'm pretty sure I saw this described in a "things good Setup programs ought to do" document but a surprising number of apps don't do it...

kesey on September 2, 2005 6:51 AM

But launching is just one of 8 things, plus all things we do with various agents.

ActiveWords is so vastly more powerful than what you have written about! The hardest part is gettting people to modify their behavior. You have already done that, why not do more?

Let me know if you have any questions/comments about ActiveWords and I will do my best to get you answers.

Also, let me know if you think having a guided tour would enhance your understanding of ActiveWords.

Buzz

Buzz Bruggeman on September 2, 2005 8:39 AM

I find Windows key + D a favourate of mine, to bring up the desktop then pressing it again brings all the windows back!

Windows key + L is a new one to me, I'll remember this one to impress people with the speed at which I can lock my workstations! :)

Peter Bridger on September 2, 2005 9:08 AM

Speaking of Environment Variables, from the Run Dialog enter the following %tmp%. This will launch the File Explorer and take you to the system defined temporary directory. (This should work on Win95, Win2000, WinXP, etc.) So, why not create your own? You can create an Environment Variable that will take you to a directory, launch a file, or take you to a web site. I also created a little command-line util to help manage variables. For more info see my blog at a href="http://rtodosic.blogspot.com/2004/11/setglobal.html"http://rtodosic.blogspot.com/2004/11/setglobal.html/a

By the way, thanks for your posts. I always find them very useful and insightful.

Richard Todosichuk on September 2, 2005 10:08 AM

WinKey + U brings up the utility manager. I use magnifier all of the time for web development (pixel-perfect *slap*).

Travis on September 2, 2005 10:36 AM

I'm used to winkey+r, winword/iexplore/excel/powerpnt/pbrush/notepad now.

I have long been a fan of making shortcuts, naming them appropriately, and dumping them in System32. I used "IE" to save myself time typing iexplore back before I switched to Firefox for good. I have used "home" as a shortcut to a remote desktop .rdp file that automatically opened a connection to my home machine with my screen size / color depth preferences.


Good times.

Daniel Pritchett on September 2, 2005 10:42 AM

"Start, Run, "word" won't launch Microsoft Word, for example"

That's because the executable is called "winword". Win-R winword works just fine over here. Try and figure out power point without looking -- it's impossible.

Bob on September 2, 2005 11:42 AM

Slickrun is also a nice tool:
Win + Q sets gives focus to a floating inputfield, where i can type the following:

"g searchstring" for googling
"m" for outlook
"music" for mediaplayer+explorer on musicdirectory
"babel word2lookup" to get a translation
"sql" for my queryanalyzer
"imdb moviename" guess what
"noir" calls a midget to fill my coffeecup

actually that last one isn't true :p

all cmd commands are still available offcourse

bonna on September 2, 2005 1:39 PM

For all your environment variables: type SET at a command prompt.

Dunc on September 3, 2005 6:12 AM

===========
THE OLD WAY
===========

HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\

Add a Key called "randomWordDocument.exe"
Inside the key, set default's value to "C:\My Documents\random.doc"

Now whenever you enter "randomWordDocument" (no need for the ".exe" part) it will launch "C:\My Documents\random.doc"... depending on you system, most likely inside of Microsoft Word.

I type "c", "d" and "e" to quickly launch those drives. "zip" for Winzip, "ff" for Firefox etc.


===========
THE NEW WAY
===========

That tricky to do... so use AppPaths ( http://www.gregorybraun.com/AppPaths_ss.html ) to save you from messing with the registry.

It's so helpfull that the first thing you should do is add an entry called "run.exe" so that you can launch it by typing "run" into the Windows Run dialog box.

Gerry on September 4, 2005 7:39 AM

I love the WinKey, but do WAY more than these with it. The secret is the free AutoHotKey This lets you bind any action you like to any combination of keys you can imagine. I use the WIN+Letter key for my most frequent shortcuts, and RCTRL+Letter for a bunch of others. If that's not sufficient, you can bind arbitrarily complex keys Ctrl+Alt+Win+Letter or even PrntScrn+Shift+Letter up to the limits of your brain's capacity. Hitting a key launches a very powerful script engine that can do some amazine things. It can start programs, terminate programs, send keys or mouse clicks, activate, deactivate, expand, minimize... you name it. Check it out. It's my absolute favorite bit of coolness.

Wade Hatler on September 5, 2005 10:06 AM

I have a folder called "Often" within the "Start Menu" folder (right click the Start button and choose Explore) once I have created this folder I drag and drop shortcuts (holding down CTRL to make sure you COPY the shortcut rather than moving the original) from all over the shop to this folder - I then rename them to ensure that the first letter is unique and logical - from here I can be three keypresses away from what I want eg WINKEY - brings up start menu, O - selects the "Often" Menu, N selects Notepad, I dont need to hold down the WINKEY while I press O so can be drinking my tea while launching Notepad. I like this method also because it is easy to maintain (No registry hacks). If you know how to drag the menu items around and drop them then you cab set it up and alter it when new Apps are installed very quickly. Transferring to another computer is simply a ZIP away.

Paul Petersen on September 5, 2005 12:09 PM

I'm still waiting for a Windows version of Quicksilver to come out. (a href="http://quicksilver.blacktree.com/)"http://quicksilver.blacktree.com/)/a It's changed the way I work with my iBook. I use slick run on my XP machines but it's no where near as powerful as Quicksilver.

FriedGeek on September 6, 2005 2:14 AM

You find some nice changes in Windows Vista as it is much smarter you can type things like word and it opens word note opens note internet opens the default browser...

Mark Mehelis on September 6, 2005 11:27 AM

1) An almost complete list of Windows keyboard shortcuts for Windows XP can be found in C:\WINDOWS\Help\keyshort.chm

2) Above list is missing Win+B (first introduced in XP) that gives focus to the first tray icon--or focus to that show/hide () arrow if you are hiding tray icons

3) Win+Break should actually be Win+Pause. If you use a language that lets you simulate these keypresses--VB Script won't work with those keys--then only Win+Pause brings up system properties.

CyberSlug on November 9, 2005 2:25 AM

Excellent, I updated the list. Thanks for the tips!

Jeff Atwood on November 9, 2005 4:03 AM

Here's a list of 113 commands you can use with Windows-R (Run):

http://www.fixmyxp.com/content/view/20/42/

Some aren't very useful, and a few you already know about (calc, etc), but there are definitely a few gems in there. Worth reading through.

Jeff Atwood on January 20, 2006 7:19 AM

If someone wants an "appPaths"-like tool that autoregisters executable, that is selected in TotalCommnder, to be able to run through Win+R (with C (MSVC++ 7.0) source code), you may contact me (a href="http://void_shambler_0.livejournal.com/profile)"http://void_shambler_0.livejournal.com/profile)/a
The project is too small to have a homepage.

Shambler0 on March 30, 2006 3:49 AM

The latest version of google desktop has a useful feature of pressing ctrl twice to bring up a floating search dialog (similar to slickrun). You can then type search terms including names of shortcuts in your start menu. Typing "word" to start word works quite well and with the autocomplete you can usually get there in less letters.

Leaf on April 8, 2006 7:28 AM

I've been messing with mouseless windows for the last few weeks. Currently I'm on:
- Find and run robot. I found launchy but it had bugs. Find and run robot is much more powerful anyway. Highly recommended.

- Autohotkey is the business too. I'm currently using it for macros _everywhere_. So snippets of code that I want to use work in any text editor. I also have a couple of other scripts. My current favourite though is this one:
http://www.autohotkey.com/forum/viewtopic.php?t=1040

Control-Space and start typing. Hit enter and I'm there. no more alt-tabbing back and forth.

Gavin van Lelyveld on June 29, 2006 8:11 AM

Actually there is no need to add anything to the path. try win+r "." (just type the dot character). You'll see that your default directory for win+r is your %homedrive%%homepath%. So you can just put links and executables in there. Admittedly that get cluttered a bit, but then again your real home is not used for much. Anything important is in subfolders of it.

Rainer on February 13, 2007 1:23 AM

question: sometimes my windows key will not work to expand the start menu. other windows key shortcuts work fine. I've seen this on two machines with XP. Have I inadvertently switched it off? Anyone else see this?

shams on February 13, 2007 1:58 AM

try a google for "Launchy" as an app launcher, absolute bliss..
small mem-footprint, multi-use; i hardly ever use the Start menu, or Run anymore

cam on February 23, 2007 6:56 AM

I'd never heard of the win+run shortcuts thing, and I love it! It sure beats all the clicking around the start menu!

Brian Dupree on March 29, 2007 6:57 AM

Does anyone know how to change the WIN + (any number) shortcuts? I can't find any literature regarding them on the internet.

Here is what I found when I experimented:
WIN+1: Nothing I can tell
+2: Nothing
+3: Runs my "Suspend.exe" program (which is located at C:\suspend.exe) - not sure why it runs this program... (I have this program set at a shortcut for my Fujitsu ECO button on my laptop)
+4: Nothing
+5: Nothing
+6: Lauches "cdplayer.exe" - but it closes right after...if you pay attention to the taskbar, you will briefly notice a cd icon show up. I only found out that it was cdplayer.exe by opening task manager and then pressing the shortcut repeatably.
+7: cdplayer.exe
+8: cdplayer.exe
+9: cdplayer.exe
+0: Starts the screensaver

Can anyone else replicate these shortcuts? And also, does anyone know how to modify them? Thanks!

Dom

Dom on April 16, 2007 8:17 AM

Regarding the Win + number thing: in Vista, 1 through 0 open the first 10 shortcuts in the Quicklaunch toolbar. I have not tested in other Windows versions.

Also in Vista:
Win + X is the Windows Mobility Center. (I guess that is only important if you have a laptop.)
Win + B shifts focus to the system tray icons in the Startbar.
Win + T shifts focus to the task section of the Startbar.
Win + G is a substitute for the Ctrl/Ctrl thing to open the Google Desktop floating searchbar thing (if installed).

Even though they aren't Winkey combos, I have always liked these:
Ctrl - Esc is a substitute for just kitting the Winkey.
Ctrl - Shift - Esc opens Task Manager
Shift - F10 is a substitute for the other Windows key (the right-mouse, or menu key, or whatever that thing is called).

One more thing (only remotely related): run gpedit.msc to open the Group Policy Editor MMC snap-in, open User Configuration/Administrative Templates/Start Menu and Taskbar and set Remote Help menu from Start Menu to rid your start menu of that annoying Help item. There's other cool stuff in there as well.

L8r

chris on May 17, 2007 10:31 AM

I've taken to using launchy(http://www.launchy.net/) for quick launching programs, access to files/folders, and doing web searches.

It doesn't catalog everything but for a lot of things it brings the computer to my fingertips fast.

Jethro on May 17, 2007 11:12 AM

The winkey+L is not working on my PC, the rest of the combination work fine. Can anyone help to advise? thanks

ngsp on September 11, 2007 1:44 PM

Just use Launchy. I set the hotkey to Win+Z.

Abe on September 19, 2007 3:01 AM

I gotta say that I love doing things without the mouse. Its way cooler, its way faster, and its more mentally engaging.

However, I sometimes find myself using the mouse anyways.

The keyboard is like using a huge vocabulary, sometimes you just want to say things stupidly and with more words.

Plus, sometimes one hand is stuck under the desk ;o

IanK on October 3, 2007 8:11 AM

I've always wondered what the difference between Windows + D and Windows + M is...

Guillermo on November 3, 2007 3:08 AM

I use Winkey* for as long as I can remember. Locking my workstation, getting to the desktop, etc. Even when I started using Linux I configured all the common Winkey* combinations to match Window's so I could comfortably use them.
However the Winkey+B I didn't know yet. I prefer to work with the keyboard and this will help me to use the keyboard a little bit more. :) Thanks

Thomas on November 17, 2007 11:24 AM

I've always wondered what the difference between Windows + D and
Windows + M is...
Guillermo on November 3, 2007 02:08 PM

Guillermo, I can't answer that and don't see why Windows+D was introduced (maybe because D is for Desktop) but Windows+M Minimises all windows and Windows+Shift+M restores them again. Makes more sense to use the same letter to me. Oh and I like the Windows+L, I've always wanted a quick way to do that!

The winkey+L is not working on my PC, the rest of the combination
work fine. Can anyone help to advise? thanks
ngsp on September 11, 2007 12:44 AM

ngsp, This only works on NT based versions of Windows (2000, XP) and Vista. If you're using one of these versions and you can't lock your computer (the long way is Ctrl+Alt+Del then click Lock Computer) you'll need to tweak the network settings. I can't remember what to do, but it should be possible on Winndows NT/2000 and later.

And my contribution to the thread - the button immediately left of the right Ctrl key (a menu with a pointer) brings up the context menu (same as right-click).

Hope my ramblings help :)

PS. I just remembered, to set Google.co.yourcountry (google.co.uk for example) to search your country by default, click the 'pages from UK' button, then - leaving the search bar empty - click Search. The address bar now has the UK button selected when it loads. Now bookmark this page, or use it as your homepage.

Jamie on December 13, 2007 1:46 AM

Using shortcuts there is a HORRIBLE solution (kludge). You're supposed to use App Paths.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths

...like other people said above.

Nicolas on March 2, 2008 7:35 AM

I went through Heathrow last week, and there were a noticeably large number of adverts up in the security screening area. (All for a certain large consultancy)

Lotinas Annase on April 14, 2008 8:37 AM

My Laptop Has no windows key :-(

biojae on May 27, 2008 9:17 AM

In response to Dom's question. I run windows vista and the Win-number combinations launch the programs that are on my quicklaunch bar in order from left to right.

For example IE is the 4th icon over so Win-4 launches it.

I have more than 9 icons showing though and I have no idea how to launch the rest.

Bill Goodrich on June 2, 2008 11:49 AM

biojae

You can use SharpKeys to add a key map to your registry in place of the windows key if you need it. For example, my keyboard does not have a windows key either and I don't use F6 for anything else so I mapped it so F6 is my windows key.

Bill Goodrich on June 2, 2008 11:50 AM

autohotkey is my favoritest program. one of the things i use it for is development for different languages. eg i hit winkey + V and it opens up Vim with settings for Arc. when i want to run the code i've written, i hit winkey + enter and it opens up a console, types in the mzscheme commands to start the arc repl, and pastes the code, surrounded by (do ...) so that the code is run like a file rather than a repl sequence

then it alt-tabs back to vim. now this all happens very quickly mind you. if i hit winkey + enter again, it reuses the same console window. winkey + shift runs the current lisp form the cursor is in

just to give you an idea of the sorts of things you can do with autohotkey. some simpler things i've done are remapping ctrl, enter, and backspace to leftalt + letter hotkeys so my pinkies don't have to stretch. it makes for more comfortable and faster typing

n on July 5, 2008 3:12 AM

You find some nice changes in Windows Vista as it is much smarter you can type things like word and it opens word note opens note internet opens the default browser...

Youtube on July 5, 2008 7:46 AM

I have a problem with the winkey combination winkey + i which (on my newly acquired machine) has the same effect as winkey + l - that is it locks the workstation. This makes it clash with an autohotkey script that I use based on #i::

Can anyone tell me how to disable the winkey + i combination? I haven't seen it listed as a standard code anywhere (ie like winkey + l or winkey + d, etc).

imlincs on September 8, 2008 12:08 PM

A tip for anybody who is in a hurry when working on the computer: USE KEYBOARD SHORTCUTS TO LAUNCH YOUR APPS.

How to do this? Go to the Start Menu and locate your frequently-used application. Then, RIGHT-CLICK the application name. Click the Properties option, and locate the Shortcut Key text box. Click the key combination you will associate with this app, then click the OK button. The typed instructions right here seem difficult, but they ARE NOT, and once you set up your shortcuts and use them, life is quicker.

For Word, I use Ctrl + Alt + W
For Excel, I use Ctrl + Alt + E
For Access, I use Ctrl + Alt + A
For Paint, I use Ctrl + Alt + P
For Calculator, I use Ctrl + Alt + C
For Visual Studio, I use Ctrl + Alt + V
For Dreamweaver, I use Ctrl + Alt + D
For SQL Studio (used to be Query Analyzer), I use Ctrl + Alt + Q
For Publisher, I use Ctrl + Shift + P
For Corel Painter, I use Alt + Shift + P
For Firefox, I use Ctrl + Alt + I (for Internet)
For PSPad, I use Ctrl + Alt + T (for Text)

aendenne on January 10, 2009 6:19 AM

Launchy does all this and is super fast to learn. it also learns your typing shortcuts for you.

John on March 30, 2009 6:59 AM

I have used XHTML 1.0 and CSS that conforms to specification, as laid out by the W3C because I believe that usability and accessibility must have a solid foundation. If anything on this web site does not validate correctly then visit http://www.sitepourjouer.com

meilleur site a jouer sur Internet on April 1, 2009 5:48 AM

Launchy does all this and is super fast to learn. it also learns your typing shortcuts for you.

shaiya gold on April 18, 2009 2:40 AM

Launchy does all this and is super fast to learn. it also learns your typing shortcuts for you.

cheap shaiya gold on April 18, 2009 2:41 AM

Launchy does all this and is super fast to learn. it also learns your typing shortcuts for you.

shaiya online gold on April 18, 2009 2:41 AM

Launchy does all this and is super fast to learn. it also learns your typing shortcuts for you.

buy shaiya gold on April 18, 2009 2:42 AM

You can use SharpKeys to add a key map to your registry in place of the windows key if you need it. For example, my keyboard does not have a windows key either and I don't use F6 for anything else so I mapped it so F6 is my windows key

youtube on June 2, 2009 12:10 PM

thanks for pulling all this information together. It's a great resource

Komik Videolar on June 3, 2009 2:08 AM

Thank you for the summary we are going some justin tv for some one its really good.....

cilt bakimi on June 4, 2009 9:42 AM

Thanks My Friend..

Güncel Blog on June 21, 2009 5:08 AM

Thanks for putting up the information.

Guvenlik Sistemleri on July 7, 2009 9:26 AM

Launchy does all this and is super fast to learn. it also learns your typing shortcuts for you.

Vücut Bakımı on July 9, 2009 7:30 AM

Thanks for putting up the information

yahoo music videos on July 10, 2009 7:02 AM

Can I put this essay to my general content site?

Thank you so much.

seks on July 24, 2009 10:44 AM

Thank you so much

youtube music videos on July 25, 2009 1:04 PM

It's a great resource.

netbook reviews on July 27, 2009 9:34 AM

I recently upgraded (if you want to call it that) to Windows Vista 64 bit. I have been tweaking it a lot, but I ran into a brick wall while trying to create my own Windows Key + * shortcuts. I saw the above mentioned program WinKey.exe, but it hasn't been supported in years nor does it work with 64 bit systems (or at least Vista 64 bit). I scowered the internet looking for a solution and finally found one, it's Clavier+ (http://utilfr42.free.fr/util/Clavier.php). Hopefully this will make it easier for people like me that are looking for a program like this.

Now I can do all the shortcuts I want.
WinKey + W = Web Dev Folder
WinKey + C = custom cmd prompt
...
You get the point.

William Hall on August 1, 2009 8:34 AM

I use Winkey* for as long as I can remember. Locking my workstation, getting to the desktop, etc. Even when I started using Linux I configured all the common Winkey* combinations to match Window's so I could comfortably use them.
However the Winkey+B I didn't know yet. I prefer to work with the keyboard and this will help me to use the keyboard a little bit more. :) Thanks

youtube on August 2, 2009 3:40 AM

Hello,thanks for essay.

i will add the essay to my news site. cana i?

thank you again sir...

journal news articles on August 18, 2009 4:08 AM

I type "c", "d" and "e" to quickly launch those drives. "zip" for Winzip, "ff" for Firefox etc.

film izle on August 20, 2009 4:40 AM

I learned about WinKey + L from a co-worker. I was in his cubicle while he was gone, and I was about to start fiddling with his desktop settings to screw with him. He peeked his head in from another room, and asked me to do him a favor while I was in his cube. He said to press and hold the winkey and then press then 'L' key. I did so of course, and it thwarted my attempts at mischief unfortunately.

Thanks Jeff for listing these. In particular the combination to restore all minimized windows. I knew that WinKey + M minimized them all, but I didn't know how to get them back. Of course, from now on I'll probably just use WinKey + D.

Marty Thompson on February 6, 2010 9:29 PM

The comments to this entry are closed.