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
5 comments:
You could just use Visual Studio macros, too.. 8^)
Sub BuildSolution()
DTE.ExecuteCommand("Build.BuildSolution")
End Sub
For me, it was actually just because I had Visual Studio running as an administrator and AutoHotKey running normally. I then ran AutoHotKey as an administrator and it all worked.
@Wasatch Wizard: You're right, VS macros usually work well. But in my case, I wanted to make switching between saved VS window layouts a one-click operation, which is very handy for docking/undocking a laptop. Anyway, the VS macros don't work in the "Import and Export Settings" wizard beyond simply starting the wizard, so I turned to AutoHotkey.
Thank god. I'm running Win7 on a Macbook Pro (don't ask), and since they've neglected to include a real keyboard I've been trying to remap the right alt key to the context menu. Thanks!
Thank god. I'm running Win7 on a Macbook Pro (don't ask), and since they've neglected to include a real keyboard I've been trying to remap the right alt key to the context menu. Thanks!
Post a Comment