F1::
SetTimer, RepeatTask, 300
return
F2::Pause ; 스크립트를 일시 중지합니다.
RepeatTask:
Send, {Ctrl down}
Sleep, 59000 ; 59초 대기 (1분 - 1초)
Send, {Ctrl up}
Sleep, 1000 ; 1초 대기
Send, {Right down}
Sleep, 1000 ; 1초 동안 오른쪽 키 누르기
Send, {Right up}
Send, {Shift down}
Sleep, 100 ; 0.1초 대기
Send, {Shift up}
Sleep, 100 ; 0.1초 대기
Send, a
Sleep, 1000 ; 1초 대기
Send, {Left}
Sleep, 100 ; 0.1초 대기return
F1누르면 시작 F2일시정지 재생 하고싶은데 일시정지 절대안함 어케해야함..?
댓글5
키보드 입력 빠르게되서 그런듯
ifwinactive,ahk_exe msw.exe 추가해서 메랜 활성화 상태에서만 동작하게 하셈
아 뭔가 복잡해지네..
복잡할게 뭐있어
ifwinactive,ahk_exe msw.exe 이거로 묶기만 하면되는걸 일댈줘 수정해서 줄테니까
형 미안한데 그 왼쪽으로는 어케 바꿔야해여?
아에 몰라서 미안합니다
F1::
loop
{
ifwinactive,ahk_exe msw.exe
{
Send, {Ctrl down}
Sleep, 59000
Send, {Ctrl up}
Sleep, 1000
Send, {Right down}
Sleep, 1000
Send, {Right up}
Send, {Shift down}
Sleep, 100
Send, {Shift up}
Sleep, 100
Send, a
Sleep, 1000
Send, {Left}
Sleep, 100
}
}
return
F2::
Pause