음악 들으면서 일하다가 잠시 집중하고 싶거나 누군가와 통화해야 할 때 음악을 일시 중지 시키고 작업이 끝나면 다시 재생하곤 하는데요. Lifehacker에 소개된 아래 스크립트를 이용하면 대부분의 미디어 플레이어에서 이 과정을 단축키 하나로 편리하게 자동화 할 수 있습니다.
윈도우 (AutoHotkey 스크립트)
- 스크립트의 !+p는 Alt+Shift+P 단축키를 의미하며 변경하고 싶은 경우 !(알트키), ^(컨트롤키), +(쉬프트키), #(윈도우키) 조합을 이용해 바꾸시면 됩니다.
!+p::
sendinput {Media_Play_Pause}
sleep 300000
sendinput {Media_Play_Pause}
return
미디어 재생 프로그램으로 아이튠을 이용하는 경우 mmkeys.dll 파일이 시스템에 설치되어 있지 않다면 먼저 설치하셔야 합니다. 다운로드 받은 후 C:\Users\사용자\AppData\Roaming\Apple Computer\iTunes\iTunes Plug-ins 디렉토리에 넣고 아이튠을 다시 실행하면 적용됩니다. (XP 경로는 C:\Program Files\iTunes\Plug-ins)
맥 (AppleScript)
- 저장 후 Quicksilver로 단축키 할당 (원문 참고)
tell application "iTunes"
pause
delay 300
play
end tell
일시 정지 시간을 바꾸고 싶으면 상기 스크립트의 300000 또는 300을 조정해주면 되는데요. 둘 다 300초(5분)으로 설정된 상태입니다.
댓글을 달아 주세요
역시 진리의 오토핫키네요. 잘 보고 갑니다.
2011/04/01 23:41맞는 말씀입니다. 진리의 오토핫키~
2011/04/02 00:42전 그냥 스피커를 꺼요 ㅋㅋㅋ
2011/04/03 09:08스피커까지 손 뻗치기 귀찮을 때도 있습니다.. ㅋㅋ
2011/04/07 09:46스크립트를 이용하면 대부분의 미디어 플레이어에서 이 과정을 단축키 하나로 편리하게 자동화 할 수 있습니다.
2011/10/09 11:55I really believe you will do much better in the future I appreciate everything you have added to my knowledge base.Admiring the time and effort you put into your blog and detailed information you offer!
2012/01/08 23:18Thank you for the sensible critique. Me and my neighbor were just preparing to do some research about this. We got a grab a book from our local library but I think I learned more from this post. I am very glad to see such great information being shared freely out there.
2012/01/14 07:12