È­¸é À§ µð½ºÇ÷¹ÀÌ¿¡¼­ º¼·ý Á¶ÀýÇÏ´Â ¹ý (OSD) -- by Rajat

ÀÌ ½ºÅ©¸³Æ®´Â ¿©·¯ºÐÀÌ ¼±ÅÃÇÑ ÇÖÅ°¸¦ ¸¶½ºÅÍ ¶Ç´Â ¿þÀÌºê º¼·ýÀ» ³ôÀ̰ųª ³»¸®´Â µ¥ ÇÒ´çÇÕ´Ï´Ù. µÎ º¼·ý ¸ðµÎ ´Ù¸¥ »öÀÇ ¹Ù ±×·¡ÇÁ·Î º¸¿©ÁÝ´Ï´Ù.

ÀÌ ½ºÅ©¸³Æ® ³»·Á ¹Þ±â  |  ´Ù¸¥ »ùÇà ½ºÅ©¸³Æ®  |  È¨À¸·Î

;_________________________________________________ 
;_______»ç¿ëÀÚ ¼³Á¤_____________________________

; Àç´ÜÀº ÀÌ ±¸¿ª°ú ÇÖÅ° ±¸¿ª¿¡¼­¸¸ Çã¿ëÇÕ´Ï´Ù!!

; ¸Å¹ø º¼·ýÀ» ¿Ã¸®°Å³ª ³»¸± ¹éºÐ·ü:
vol_Step = 4

; ¾ó¸¶³ª ¿À·¡ º¼·ý ·¹º§ ¹Ù ±×·¡ÇÁ¸¦ º¸¿©ÁÙ °ÍÀΰ¡:
vol_DisplayTime = 2000

; ¸¶½ºÅÍ º¼·ý ¹Ù Ä÷¯
; (´õ Á¤¹ÐÇÑ ½¦À̵带 »ç¿ëÇÏ·Á¸é µµ¿ò¸» ÂüÁ¶):
vol_CBM = Red

; ¿þÀÌºê º¼·ý ¹Ù Ä÷¯
vol_CBW = Blue

; ¹è°æ »ö
vol_CW = Silver

; ¹ÙÀÇ È­¸é ÁÂÇ¥.  -1À» »ç¿ëÇϸé ÇØ´ç Â÷¿øÀÇ °¡¿îµ¥¿¡ Á¤·Ä:
vol_PosX = -1
vol_PosY = -1
vol_Width = 150  ; ¹ÙÀÇ ³Êºñ
vol_Thick = 12   ; ¹ÙÀÇ µÎ²²

; Å°º¸µå¿¡ º¼·ý¿¡ ´ëÇÑ ¸ÖƼ¹Ìµð¾î ¹öÆ°ÀÌ ÀÖ´Ù¸é
; ¾Æ·¡ÀÇ ÇÖÅ°¿¡ ±× ¹öÆ°µéÀ» »ç¿ëÇϵµ·Ï ¹Ù²Ü ¼ö ÀÖ½À´Ï´Ù. ¾Æ·¡¿Í °°ÀÌ ÁöÁ¤ÇϽʽÿÀ.
; Volume_Up, ^Volume_Up, Volume_Down, ±×¸®°í ^Volume_Down:
HotKey, #Up, vol_MasterUp      ; Win+UpArrow
HotKey, #Down, vol_MasterDown
HotKey, +#Up, vol_WaveUp       ; Shift+Win+UpArrow
HotKey, +#Down, vol_WaveDown


;___________________________________________ 
;_____ÀÚµ¿ ½ÇÇà ¼½¼Ç__________________

; ¿©±â´Â ¾Æ¹« °Íµµ ¹Ù²ÙÁö ¸¶½Ê½Ã¿À (´Ü, ¹«¾ùÀ» ÇÏ°í ÀÖ´ÂÁö Àß ¾Æ´Â °æ¿ì´Â ¿¹¿ÜÀÔ´Ï´Ù).

vol_BarOptionsMaster = 1:B ZH%vol_Thick% ZX0 ZY0 W%vol_Width% CB%vol_CBM% CW%vol_CW%
vol_BarOptionsWave   = 2:B ZH%vol_Thick% ZX0 ZY0 W%vol_Width% CB%vol_CBW% CW%vol_CW%

; X À§Ä¡°¡ ÁöÁ¤µÇ¾î ÀÖ´Ù¸é, ±×°ÍÀ» ¿É¼Ê¿¡ Ãß°¡ÇÕ´Ï´Ù.
; ±×·¸Áö ¾ÊÀ¸¸é, »ý·«ÇØ ¹Ù¸¦ ¼öÆòÀ¸·Î °¡¿îµ¥¿¡ ¹èÄ¡ÇÒ ¼ö ÀÖ½À´Ï´Ù:
if vol_PosX >= 0
{
    vol_BarOptionsMaster = %vol_BarOptionsMaster% X%vol_PosX%
    vol_BarOptionsWave   = %vol_BarOptionsWave% X%vol_PosX%
}

; Y À§Ä¡°¡ ÁöÁ¤µÇ¾î ÀÖ´Ù¸é, ±×°ÍÀ» ¿É¼Ç¿¡ Ãß°¡ÇÕ´Ï´Ù.
; ±×·¸Áö ¾ÊÀ¸¸é, »ý·«ÇØ ³ªÁß¿¡ °è»êÇÒ ¼ö ÀÖ½À´Ï´Ù:
if vol_PosY >= 0
{
    vol_BarOptionsMaster = %vol_BarOptionsMaster% Y%vol_PosY%
    vol_PosY_wave = %vol_PosY%
    vol_PosY_wave += %vol_Thick%
    vol_BarOptionsWave = %vol_BarOptionsWave% Y%vol_PosY_wave%
}

#SingleInstance
SetBatchLines, 10ms
Return


;___________________________________________

vol_WaveUp:
SoundSet, +%vol_Step%, Wave
Gosub, vol_ShowBars
return

vol_WaveDown:
SoundSet, -%vol_Step%, Wave
Gosub, vol_ShowBars
return

vol_MasterUp:
SoundSet, +%vol_Step%
Gosub, vol_ShowBars
return

vol_MasterDown:
SoundSet, -%vol_Step%
Gosub, vol_ShowBars
return

vol_ShowBars:
; "¹ø½ÀÓ" È¿°ú¸¦ ¹æÁöÇÏ·Á¸é, ¾ÆÁ÷ Á¸ÀçÇÏÁö ¾ÊÀº °æ¿ì,
; ¹Ù ⸸ »ý¼ºÇϽʽÿÀ:
IfWinNotExist, vol_Wave
    Progress, %vol_BarOptionsWave%, , , vol_Wave
IfWinNotExist, vol_Master
{
    ; ½ºÅ©¸³Æ®°¡ ½ÇÇà ÁßÀÎ µ¿¾È¿¡ È­¸é Çػ󵵰¡ ¹Ù²î´Â °æ¿ì,
    ; ¿©±â¿¡¼­ À§Ä¡¸¦ °è»êÇÕ´Ï´Ù:
    if vol_PosY < 0
    {
        ; ¿þÀÌºê ¹Ù¸¦ ¸¶½ºÅÍ ¹Ù ¹Ù·Î À§¿¡ »ý¼ºÇÕ´Ï´Ù:
        WinGetPos, , vol_Wave_Posy, , , vol_Wave
        vol_Wave_Posy -= %vol_Thick%
        Progress, %vol_BarOptionsMaster% Y%vol_Wave_Posy%, , , vol_Master
    }
    else
        Progress, %vol_BarOptionsMaster%, , , vol_Master
}
; »ç¿ëÀÚ ¶Ç´Â ¿ÜºÎ ÇÁ·Î±×·¥ÀÌ º¼·ýÀ» ¹Ù²Ù¾úÀ» °æ¿ì, º¼·ýÀ» µÑ ´Ù ¾ò½À´Ï´Ù:
SoundGet, vol_Master, Master
SoundGet, vol_Wave, Wave
Progress, 1:%vol_Master%
Progress, 2:%vol_Wave%
SetTimer, vol_BarOff, %vol_DisplayTime%
return

vol_BarOff:
SetTimer, vol_BarOff, off
Progress, 1:Off
Progress, 2:Off
return