In Windows (XP, 7, 8) how do you quickly assign keyboard shortcuts to launch your favorite applications using autohotkey when the application is active.
In PhraseExpander, you can add your favorite applications into your library for fast access, by simply pressing Ctrl + Shift + A when the application is active (as shown here).
http://www.phraseexpander.com/blog/assign-shorts-applications/
I was wandering if that could be done using autohotkey as well.
Edited:
Normally to add a script that when Ctrl+Alt+N is pressed, Notepad will be launched. You would need to have the following script.
^!n:: Run Notepad
What I want is that when the application is active, pressing Ctrl + Shift + A should take the path where the application is installed and create a script like above.
So when Command Prompt is active, pressing Ctrl + Shift + A should create a script like the following.
^!t:: Run C:\WINDOWS\system32\cmd.exe
where C:\WINDOWS\system32\cmd.exe is the path where cmd is installed/located
and Ctrl + Shift + T is the keyboard shortcut.