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