标签:
#v::run "D:\Program Files\EmEditor\EmEditor.exe"return~LButton&RButton::run "D:\Program Files\VistaSwitcher\vswitch64.exe"return#w::send #treturnif(){}elseif(){}else{}#M::WinMinimize A;WinMinimize最小化命令,A表示当前窗口returnwind =0;win+d to Minimize all windows and undo#D::;MsgBox,%wind%;use the variable to decide minimize or undoif(wind =0){WinMinimizeAll wind =1}elseif(wind =1){WinMinimizeAllUndo wind =0}return;win+X to run SpeedCrunch#X::IfWinActive,SpeedCrunchWinClose,SpeedCrunchElseIfWinExist,SpeedCrunchWinActivate,SpeedCrunchElseRun"C:\Program Files\SpeedCrunch\speedcrunch.exe"Return;;win+] to run evernote and hideProcess,Exist,Evernote.exeif(ErrorLevel=0){Run"D:\Program Files\Evernote\Evernote\Evernote.exe"}else{;there is to show how to use pid to active and hideIfWinNotActive ahk_pid %ErrorLevel%Send^!b;if evernote is not in front, use its default shortcut key elseWinClose ahk_pid %ErrorLevel%;if it is in front, close it }
标签:
原文地址:http://www.cnblogs.com/goalishman/p/4410363.html