James asked for the script I use. It's actually very simple and doesn't take advantage of any advanced features of AutoHotkey at present. Here it is:

#w::Run iexplore

#h::Run "C:\Program Files\Common Files\microsoft shared\Help 9\dexplore.exe" /helpcol ms-help://ms.vscc.v90 /LaunchNamedUrlTopic DefaultPage /usehelpsettings VisualStudio.9.0

#p::Run %comspec% /k ""C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"" x86,C:\

#y::Run "C:\Program Files\TextPad 5\TextPad.exe"

#z::Run "C:\Program Files\Windows Live\Writer\WindowsLiveWriter.exe"

#x::Run "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"

#a::Run "C:\Program Files\Winamp\winamp.exe"

#o::Run "%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe",C:\

^#p::Run "C:\Utils\BIN\elevate" -k %comspec% "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"

#Left::WinMinimize A

#Right::WinMaximize A

#Up::WinRestore A

posted on Thursday, May 01, 2008 10:28 PM |
Comments
Gravatar
# re: My AutoHotkey Script
Posted by James Snape on 5/1/2008 11:38 PM

Seems I asked twice too... :) The reason I asked for you script is because I can't get the elevate to execute the vcvars batch... In fact with your script it tells me:

'C:\Program' is not recognized as an internal or external command, operable program or batch file.

A quoting issue but I can't seem to find the right combo...
Comments have been closed on this topic.