저는 AutoHotKey 는 오래전부터 사용하고 있었습니다.
자주사용하는 문구나 프로그램 등을 단축키 등록하여 사용해왔죠.
제가 현재 사용중인 AutoHotKey.ahk 파일의 내용을 뿌리니 참고하세요~
AutoHotKey.ahk
; IMPORTANT INFO ABOUT GETTING STARTED: Lines that start with a
; semicolon, such as this one, are comments. They are not executed.
; This script has a special filename and path because it is automatically
; launched when you run the program directly. Also, any text file whose
; name ends in .ahk is associated with the program, which means that it
; can be launched simply by double-clicking it. You can have as many .ahk
; files as you want, located in any folder. You can also run more than
; one ahk file simultaneously and each will get its own tray icon.
; SAMPLE HOTKEYS: Below are two sample hotkeys. The first is Win+Z and it
; launches a web site in the default browser. The second is Control+Alt+N
; and it launches a new Notepad window (or activates an existing one). To
; try out these hotkeys, run AutoHotkey again, which will load this file.
; # : window key
; ^ : control key
; ! : alt key
; Note: From now on whenever you run AutoHotkey directly, this script
; will be loaded. So feel free to customize it to suit your needs.
; Please read the QUICK-START TUTORIAL near the top of the help file.
; It explains how to perform common automation tasks such as sending
; keystrokes and mouse clicks. It also explains more about hotkeys.
; Esc Key 를 더블클릭 했을 때 현재 윈도우 최소화하기.
;~Esc::
;if (A_PriorHotkey <> "~Esc" or A_TimeSincePriorHotkey > 400)
;{
; ; Too much time between presses, so this isn't a double-press.
; KeyWait, Esc
; return
;}
;WinMinimize, A
;return
;~LCtrl::
;if (A_PriorHotkey <> "~LCtrl" or A_TimeSincePriorHotkey > 400)
;{
; ; Too much time between presses, so this isn't a double-press.
; KeyWait, LCtrl
; return
;}
;InputBox, InputedString, Google Search, , , ,
;if ErrorLevel = 0
;{
; Run, C:\Program Files\Internet Explorer\iexplore.exe "http://www.google.com/search?q="%InputedString%""
;}
;return
;^!n::
;IfWinExist 제목 없음 - 메모장
; WinActivate
;else
; Run Notepad
;return
^!NumPad1::
ret := IME_CHECK("A")
if %ret% <> 0 ; 한글모드일 경우
{
Toggle_IME() ; 영문모드로 변경
}
Send id{Tab}password{Return}
if %ret% <> 0
{
Toggle_IME() ; 다시 한글모드로 원상복구
}
return
^!NumPad2::
ret := IME_CHECK("A")
if %ret% <> 0 ; 한글모드일 경우
{
Toggle_IME() ; 영문모드로 변경
}
VI_LOG := "cd /Log/ && vi ``ls -tr | grep run | tail -n 1;``"
SendInput %VI_LOG%
if %ret% <> 0
{
Toggle_IME() ; 다시 한글모드로 원상복구
}
return
#`::Run C:\Program Files (x86)\Internet Explorer\iexplore.exe
;#c::
;IfWinExist AnalogX PCalc (www.analogx.com)
; WinActivate
;else
; Run C:\Program Files (x86)\AnalogX\PCalc\pcalc.exe
;return
#c::
Run C:\Program Files (x86)\SpeedCrunch\SpeedCrunch.exe
return
;#g::Run C:\Program Files (x86)\Internet Explorer\iexplore.exe www.google.com
#g::
InputBox, InputedString, Google Search, , , ,
if ErrorLevel = 0
{
Run, C:\Users\simmanix\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome\Chrome.lnk http://www.google.co.kr/search?q="%InputedString%"
}
return
#1::Run C:\Program Files (x86)\flyExplorer\flyExplorer.exe
#2::
IfWinExist 꼬마사전
WinActivate
else
Run C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Daum\Daum 꼬마사전\Daum 꼬마사전.lnk
return
#3::Run C:\Program Files (x86)\PuTTY\putty.exe
#4::Run D:\Downloads\Utils\SuperPutty-1.3.0.11\SuperPutty-1.3.0.11\SuperPutty.exe
#F1::Run C:\Users\simmanix\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Chrome\Chrome.lnk
#Insert::
FormatTime, TimeString,, yyyy년MM월dd일 HH시mm분
SendInput %TimeString%
return
#Delete::
FormatTime, TimeString,, yyyy-MM-dd HH:mm
SendInput %TimeString%
return
!`:: WinMinimize, A
#n::Run C:\Program Files (x86)\Notepad++\notepad++.exe -multiInst
^#NumpadAdd::
Send {Volume_Up}
return
^#NumpadSub::
Send {Volume_Down}
return
;<--------------------------------------------- 한영전환 스크립트 내용 --------------------------------------------->
; http://www.autohotkey.co.kr/cgi/board.php?bo_table=script&wr_id=357#c_724
Toggle_IME()
{
Send, {vk15sc138}
}
IME_CHECK(WinTitle)
{
WinGet,hWnd,ID,%WinTitle%
Return Send_ImeControl(ImmGetDefaultIMEWnd(hWnd),0x005,"")
}
Send_ImeControl(DefaultIMEWnd, wParam, lParam)
{
DetectSave := A_DetectHiddenWindows
DetectHiddenWindows,ON
SendMessage 0x283, wParam,lParam,,ahk_id %DefaultIMEWnd%
if (DetectSave <> A_DetectHiddenWindows)
DetectHiddenWindows,%DetectSave%
return ErrorLevel
}
ImmGetDefaultIMEWnd(hWnd)
{
return DllCall("imm32\ImmGetDefaultIMEWnd", Uint,hWnd, Uint)
}
;!vk15sc1F2:: ; I want Alt-[Eng/Han] key to be "Absolutely Hangul(Korean)" mode key. I hate toggling :(
; ret := IME_CHECK("A")
; if %ret% = 0 ; 0 means IME is in English mode now.
; {
; Send, {vk15sc138} ; Turn IME into Hangul(Korean) mode.
; }
;return
;^vk15sc1F2:: ; I want Ctrl-[Eng/Han] key to be "Absolutely English" mode key. I hate toggling :(
; ret := IME_CHECK("A")
; if %ret% <> 0 ; 1 means IME is in Hangul(Korean) mode now.
; {
; Send, {vk15sc138} ; Turn IME into English mode.
; }
;return