카테고리 보관물: etc

[AutoHotKey] 볼륨 제어 스크립트

키보드로 리얼포스(REALFORCE)를 사용하면서 불편함이 미디어를 제어할 수 있는 키가 없다는 점이 불편했습니다.

사무실에서 음악을 듣다가 주변 사람이 말을 걸면 음악을 멈춰야 되는데 매번 마우스로 클릭해서 음소거 기능을 켜자니 불편해서 찾아보다보니 AutoHotKey를 이용해서 볼륨제어가 가능하다는 것을 알게 되었습니다.

키보드 매핑 프로그램을 여러가지가 있지만 간단하게 제가 원하는 기능만 사용하면 되므로 매핑 프로그램을 사용할 필요는 없었습니다.

아래 스크립트를 컴파일 해서 시작 프로그램에 넣으면 끝납니다.

[Script]

;------------------------------------------------------------------------------
; File : volumn_controls.ahk
; Author: coozplz@gmail.com
; Date: 2016. 04. 06
; Desc: 볼륨 컨트롤 키가 없는 키보드에서 음량을 제어 하는 기능

;------------------------------------------------------------------------------
;                               단축키 목록
;------------------------------------------------------------------------------
;                   [Left or Right] Window + PageUp   : 음량 크게
;                   [Left or Right] Window + PageDown : 음량 작게
;                   [Left or Right] Window + End      : 음소거
;------------------------------------------------------------------------------

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

; Volume Up settings.
<#>PgUp::SoundSet +10
Return

; Volume Down setting.
<#>PgDn::SoundSet -10
Return

; Mute toggle settings.
<#>End::SoundSet, +1, , mute
Return