Taskbar buttons switch to Last Active Window in Windows 7

In the Windows 7 taskbar, if you have lots of windows for the same application open, things may get confusing when you are trying to find the window you want.

If you control-click on the application in question, the last window will show up. If you keep clicking, it will cycle through open windows.

To change it so that a normal click (instead of a control-click) goes to the last active Windows, you may hack the registry to do so:

  1. open regedit.exe
  2. Find the registry key: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
  3. Create a new 32-bit DWORD value on the right hand side, give it the name LastActiveClick, and set the value to 1
  4. close regedit, then log off and log back on.

Reference:
http://www.howtogeek.com/howto/16334/make-the-taskbar-buttons-switch-to-the-last-active-window-in-windows-7/