본문 바로가기
기술팁/PC 팁

오토핫키 , autohotkey 설치

by nyg -i 2019. 10. 27.

자동 매크로 만드는 프로그램이다.

https://www.autohotkey.com/

 

AutoHotkey

AutoHotkey provides a simple, flexible syntax allowing you to focus more on the task at hand rather than every single little technicality. It supports not only the popular imperative-procedural paradigm, but also object-oriented and command-based programmi

www.autohotkey.com

에서 다운로드 받을수 있지만, 기본적으로 크롬이나 익스플로어에서 차단한다.

보안을 열어주어야 다운로드 할수 있다.

 여기서 그냥 다운 받고자 한다면 아래 파일 누르시면 된다.

AutoHotkey_1.1.30.01_setup.exe
3.32MB

다운로드 받고 설치는 금방할수 있다.

해당 파일을 클릭하면, 창이뜨는데,

expreess installation 누르면 된다.

그리고, EXIT 누르면 설치가 끝났다. 모든과정이 몇초안에 끝난다.

 

이제 테스트를 해보자.

사용법은 간단하다.

 

바탕화면에 마우스 오른쪽 클릭하면 새로만들기- autohotkey script

를 클릭한다.

 

그려면 스크립트 파일이 생성된다.

 

 

스크립트 파일에다 마우스 오른쪽 버튼 클릭해서  edit script 누른다.

편집하기 위해서다. 

 

그러면 이렇게 뜬다.

 

아래에 msgbox 할루 라고 적고 저장(컨트롤 + s ) 하고 창을 닫는다.

 

 

스크립트 파일에 마우스 오른쪽 버튼 누르고 compile script 를 누른다.

그러면 컴파일되면서 실행 파일이 생성된다.

 

 

녹색으로 된 아이콘이다.

실행파일을 클릭해보자

이렇게 할루 라고 메세지 박스가 생긴다.

 

PS 참고로 스크립트 명령어 몇가지만, 기재,

키보드

msgbox 할루     ;메세지 창 띄움
Sleep, 20000     ;20초 슬립

send {F10}       ;키보드 f10 번 누름,,보냄

send 할루      ;할루 보냄

http://ahkscript.org/docs/commands/MouseClick.htm

 

MouseClick - Syntax & Usage | AutoHotkey

The button to click: Left (default), Right, Middle (or just the first letter of each of these); or the fourth or fifth mouse button (X1 or X2). For example: MouseClick, X1. This parameter may be omitted, in which case it defaults to Left. Rotate the mouse

www.autohotkey.com

마우스 명령어 참고 사이트

http://ahkscript.org/docs/commands/Send.htm

 

Send - Syntax & Usage | AutoHotkey

{ASC nnnnn} Sends an Alt+nnnnn keypad combination, which can be used to generate special characters that don't exist on the keyboard. To generate ASCII characters, specify a number between 1 and 255. To generate ANSI characters (standard in most languages)

www.autohotkey.com

키보드 명령어 참고 사이트

 

Run "C:\Program Files (x86)\Sony\kor.exe"     ; 파일실행

; ^ 컨트롤 키 , ! 알트 키 , + 시프트 키 , # 윈도우키

^!S::Run "C:\Program Files (x86)\Sony\kor.exe"     ; 컨트롤 알트 S키 누르면 파일실행

^+L::Run "https://google.com/ab/stat"                  ;웹사이트도 마찬가지

^#2::Run, %comspec% /c shutdown -s -t 7200      ; 예약 종료 실행(컨트롤 + 윈도우키 + 2)

^#1::Run, %comspec% /c shutdown -a               ; 예약 종료 취소(컨트롤 + 윈도우키 + 1) 

^#B::Run "C:\windows\system32\bthprops.cpl"  ; 블루투스(컨트롤 + 윈도우키 + B)