Programing/ETC_programming
오토마우스 만들기 - autohotkey
sosal
2014. 8. 22. 09:31
반응형
/*
* made by so_Sal
*/
위 글을 참조하셔서 autohotkey를 설치하시고, 간단한 사용법을 익히세요.
- 인터넷에 떠도는 exe파일로 된 매크로를 잘못 설치하시면 바이러스 위험이 있으니 꼭 조심해주세요.
- MouseClick examples
; Example #1:
Send, {Control down}
MouseClick, left, 55, 233
Send, {Control up}
; Example #2:
Send, {Shift down}
MouseClick, left, 55, 233
Send, {Shift up}
- loop examples
Loop, 3 { MsgBox, Iteration number is %A_Index%. ; A_Index will be 1, 2, then 3 Sleep, 100 } Loop { if a_index > 25 break ; Terminate the loop if a_index < 20 continue ; Skip the below and start a new iteration MsgBox, a_index = %a_index% ; This will display only the numbers 20 through 25 }
1. Edit This Script 버튼을 클릭하여 스크립트 수정모드로 바꿔줍니다.
2. 우클릭을 반복하는 오토마우스 소스
; F1을 누르면 마우스 우클릭을 무한히 반복
; F4를 누르면 오토마우스 종료
F1::
Loop{
MouseClick, right
}
F4::Pause
3. 좌클릭을 반복하는 오토마우스 소스
; F1을 누르면 마우스 좌클릭을 무한히 반복
; F4를 누르면 오토마우스 종료
F1::
Loop{
MouseClick, left
}
F4::Pause