Skip to content

Instantly share code, notes, and snippets.

@rohinomiya
Created October 30, 2011 03:42
Show Gist options
  • Save rohinomiya/1325438 to your computer and use it in GitHub Desktop.
Save rohinomiya/1325438 to your computer and use it in GitHub Desktop.
; --- WIN+E で、あふを起動する。長押しでエクスプローラを起動
$#e::
KeyWait, e, T0.2 ; 0.2秒以上キーが離されなかったら、ErrorLevel=1
if ErrorLevel
{
; デスクトップを表示する。
; http://www.roy.hi-ho.ne.jp/mutaguchi/wsh/technic.htm
Cmd = explorer.exe /select,"::{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
Run, %Cmd%
}
else
{
IniFilePath := ConfigureIniFilePath()
FilerCommand := IniReadFilePath(IniFilePath, "Path" , "FilerCommand" , "ERROR" )
IfExist, %FilerCommand%
run, %FilerCommand%
else
Send, #e
}
; キーが離されるまで待つ
keywait, e
keywait, lwin
keywait, rwin
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment