Assign keyboard shortcut to bring window into focus

In Windows 7, the first 10 programs on your taskbar automatically have hotkeys assigned based on their position in the taskbar. Pressing Win + 1 will activate the first program on the task bar (or launch it, if it's not open). Win + 2 activates the second, and so on up to Win + 0 activating the 10th. The programs do not need to be pinned to the task bar for this to work, but programs that are pinned can be launched with those shortcuts in they are not open.