Created
October 7, 2012 16:12
-
-
Save cd01/3848777 to your computer and use it in GitHub Desktop.
autohotkey.ahk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; http://d.hatena.ne.jp/amachang/20111226/1324874731 | |
^h:: Send, {BS} | |
^m:: Send, {Enter} | |
!h:: Send, {Left} | |
!l:: Send, {Right} | |
!j:: Send, {Down} | |
!k:: Send, {Up} | |
!+h::Send, +{Left} | |
!+l::Send, +{Right} | |
!+j::Send, +{Down} | |
!+k::Send, +{Up} | |
; Ctrl+Space で IME ON/OFF | |
^Space::Send, {vkF3sc029} | |
; 既に実行してたら、そのウィンドウをアクティブにする | |
executeOrFocus(folderPath, fileName, option = ""){ | |
Process, Exist, %fileName% | |
if (ErrorLevel <> 0) { | |
WinActivate, ahk_pid %ErrorLevel% | |
} else { | |
path := folderPath . fileName . option | |
path := RegExReplace(path, "~", HOME) ; ~ を HOMEディレクトリに置換 | |
Run, %path%, '', MAX | |
} | |
} | |
; executeOrFocus(folderPath , fileName , option ) | |
^+p::executeOrFocus("~\tools\ckw\" , "ckw.exe" , "" ) ; Powershell | |
^+c::executeOrFocus("~\AppData\Local\Google\Chrome\Application\", "chrome.exe" , "" ) ; Chrome | |
^+f::executeOrFocus("C:\Program Files\Mozilla Firefox\" , "firefox.exe" , "" ) ; Firefox | |
^+i::executeOrFocus("C:\Program Files\Internet Explorer\" , "iexplore.exe", "" ) ; IE | |
^+m::executeOrFocus("C:\MinGW\msys\1.0\bin\" , "mintty.exe" , " /bin/bash --login -i") ; Mintty | |
; Run, Target [, WorkingDir, Max|Min|Hide|UseErrorLevel, OutputVarPID] | |
^+q::Run, "%HOME%\tools\Mery\Mery.exe" , '', MAX ; Mery | |
^+g::Run, "%HOME%\bin\vim73-kaoriya-win64\gvim.exe" , '', MAX ; Gvim | |
^+d::Run, "explorer" , "%HOME%\Documents" ; My Document |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment