<fragment-block fade-up>
안녕하세요.
</fragment-block>
—- https://goo.gl/igMrwa?.png bg-zoom slide slow —→
<fragment-block fade-up>
PffXTZ
</fragment-block>
—- https://goo.gl/w4a9XA?.png bg-zoom slide slow —→
순위 어디에도 없는 언어
<fragment-block fade-up>
AutoHotKey 에 대해 이야기 해보려 합니다.
</fragment-block>
—- https://goo.gl/UfMdw8?.png bg-zoom slide slow —→
AutoHotKey
<fragment-block fade-up>
오토핫키(AutoHotkey)는
윈도우 응용 프로그램 및 매크로를 만드는
오픈 소스 자유 소프트웨어이다. </fragment-block>
<fragment-block fade-up>
사용자가 반복작업을 자동으로 할 수 있도록 도와준다. </fragment-block>
<fragment-block fade-up>
단축키를 제공하기 위한 스크립트 언어로 제공된다.
출처: https://ko.wikipedia.org/wiki/오토핫키
</fragment-block>
—- https://goo.gl/RBHja9?.png bg-zoom slide slow —→
관련 사이트
<fragment-block fade-up>
- 홈페이지 : https://autohotkey.com/
- AutoHotKey 포럼 : http://www.autohotkey.co.kr/
- GitHub : https://github.com/Lexikos/AutoHotkey_L
</fragment-block>
—- https://goo.gl/SMLsLc?.png bg-zoom slide slow —→
사용하게 된 이유
<fragment-block fade-up>
키보드를 바꾸고 싶었죠.
Gs8inp
</fragment-block>
<fragment-block fade-up>
당황스럽게 fn키, 방향키가 없고, Control키의 위치가 다릅니다.
bpaXMf
</fragment-block>
<fragment-block fade-up>
이 키보드에 적응할 수 있을지 테스트 하기위해
autohotkey를 사용하였습니다.
</fragment-block>
—- https://goo.gl/FfpgbE?.png bg-zoom slide slow —→
몇 가지 기호들
기호 | 설명 |
---|---|
# | 윈도우 키 |
! | Alt 키 |
^ | Control 키 |
+ | Shift 키 |
그 외에… 등등등..
—- https://goo.gl/7mJGQ5?.png bg-zoom slide slow —→
>
## 간단한 예제
- snippet.autohotkey
#n::Run Notepad
<fragment-block fade-up>
스크립트를 실행하면 트레이 아이콘이 생겨요
v45wmC
</fragment-block>
<fragment-block fade-up>
윈도우 + n 키를 누르면 메모장이 실행되요
CEtAon
</fragment-block>
—- https://goo.gl/psMdPs?.png bg-zoom zoom slow —→
간단한 예제2
- snippet.autohotkey
^!s:: Send Sincerely,{enter}John Smith ; This line sends keystrokes to the active (foremost) window. return
<fragment-block fade-up>
Ctrl + Alt + s 를 누르면
내용이 자동으로 입력됩니다.
LY6akr
</fragment-block>
—- https://goo.gl/FtYsDB?.png bg-zoom slide slow —→
>
## 현재 사용하고 있는 것들
HotKeys
입력 키 | 맵핑 키 |
---|---|
Capslock + a,s,d,f | Ctrl + a,s,d,f |
Capslock + i,k,j,l | Ctrl + i,k,j,l |
Capslock + 1,2,3,4 | Fn1, Fn2, Fn3, Fn4 |
—- https://goo.gl/FtYsDB?.png bg-zoom slide slow —→
HotStrings
- snippet.autohotkey
:*:%%%:: Send, %A_YYYY%년 %A_MM%월 %A_DD%일 %A_HOUR%시 %A_MIN%분 Return :*:$$:: Send, %A_YYYY%.%A_MM%.%A_DD% Return :*:/bg:: Set_Absolutely_English("bg-zoom slide slow ---->") return :*:/nw:: Set_Absolutely_English("<nowiki></nowiki>") Send {LEFT 9} return :*:/wf:: Set_Absolutely_English("<WRAP footer></WRAP>") Send {LEFT 7} return
—- https://goo.gl/FtYsDB?.png bg-zoom slide slow —→
특정 프로그램에서 동작
- snippet.autohotkey
#ifWinActive ahk_exe Xshell.exe ;<<Short Cut>> CapsLock & c::Send ^{INSERT} ;; copy CapsLock & v::Send +{INSERT} ;; paste CapsLock & j:: Send ^+{TAB} CapsLock & l:: Send ^{TAB} CapsLock & x::Send ^c ;; send break signal to terminal ^c::Send ^{INSERT} ;; copy ^v::Send +{INSERT} ;; paste ^x::Send ^c ;; send break signal to terminal ^+x::Send ^{BS} ;; send break signal to SunOS system ^n::Send +!n #ifWinActive
—- https://goo.gl/A6NUqQ?.png bg-zoom slide slow —→
GUI
<fragment-block fade-up>
간단한 코드로 GUI 프로그램도 만들수 있습니다.
- snippet.autohotkey
Gui, add, text, y+10 Section, ID: Gui, add, text, xs y+12, Password: Gui, add, edit, vid ys Section ; The ym option starts a new column of controls. Gui, add, edit, vpw xs Password Gui, add, button, default ys Section gSave, Save ; The label ButtonOK (if it exists) will be run when the button is pressed. Gui, add, button, default ys gHelp, Help Gui, add, button, default xs Section gRun, Run ; The label ButtonOK (if it exists) will be run when the button is pressed. Gui, Add, DDL, vhour w50 xm Section, 00|01|02|03|04|05|06|07|08||09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24 Gui, add, text, ys , H Gui, add, button, default ys gSetSchedule, Set Schedule Gui, add, button, default ys gDeleteSchedule, Delete Schedule Gui, add, button, default ys gClose, Close Gui, show,, Get Free E-Book
wHiXZu
</fragment-block>
—→
Autohotkey 실습
스크립트
- snippet.autohotkey
capslock & 0:: mode = 0 return ; 화면 왼쪽의 쿠키를 클릭한다. capslock & 1:: mode = 1 Loop, { if (mode = 0){ return } else if (mode = 1){ MouseClick, left, 222, 533, 1 } } return
—- https://goo.gl/4MPQuh?.png bg-zoom slide slow —→
감사합니다.
<fragment-block fade-up>
더 자세한 내용은 https://autohotkey.com/docs/AutoHotkey.htm 을 참조하시기 바랍니다.
dwTx8Z
</fragment-block>