AutoHotkey no longer works with Visual Studio 2010.
Solution:
Modify script to use fuzzy Window Title matching. Documentation explains this in limited detail.
For the .ahk:
; top of file (before loading any other .ahk)
SetTitleMatchMode 2
; Visual Studio 2008/2010
#IfWinActive , Microsoft Visual Studio
#b::SendInput +^{b} ; Build Solution
return
#IfWinActive