;示例1:启动notepad
;#n::Run Notepad
;示例2:启动notapad++
;esc::
; path = D:packageNotepad++
otepad++.exe
; file = D:packagefile.txt
;run %path% "file" |
;return
;示例3:启动total_cmd
#t::
DetectHiddenWindows, on
IfWinNotExist ahk_class TTOTAL_CMD
Run d:Program Files cTOTALCMD.EXE
Else
IfWinNotActive ahk_class TTOTAL_CMD
WinActivate
Else
WinMinimize
Return
;示例3:启动 cad
#a::
DetectHiddenWindows, on
IfWinNotExist ahk_class AfxMDIFrame90u
Run D:Program FilesAutodeskAutoCAD 2012 - Simplified Chineseacad.exe
Else
IfWinNotActive ahk_class AfxMDIFrame90u
{
WinActivate
WinMaximizew
}
Else
WinMinimize
Return