I have added mouse support for lowering and increasing the volume.
With This Script u can lower the volume by mouse
Volume Up : Ctrl+Shift+WheelUp
Volume Down : Ctrl+Shift+WheelDown
I have also deactivated the Mute Detection, but for anyone who needs it just uncomment the lines
Line No. 32 : SetTimer, CheckMute, 1000
Line No. 104 : Remove /*
Line No. 128 : Remove */
compuboy_r
;_________________________________________________
;_______Volume OSD Script - Rajat_______________
;_________________________________________________
;_________________________________________________
;_______User Settings_____________________________
;Make customisation only in this area or
;hotkey area only!!
;change characters for empty & full bar here
Full = |
Empty = -
;Customise Hotkeys in Hotkey Customisation Section
;(below the next section)
;___________________________________________
;_____Auto Execute Section__________________
; DON'T CHANGE ANYTHING HERE!!
; (unless u know what u're doing)
SetFormat, float, 0.0
SetTimer, splashoff, 1000
SoundGet, currsnd1
;SetTimer, CheckMute, 1000 //Remove Comment Mark here to enable Mute Detection
;Building Empty Bar
Loop, 100
EmptyBar = %EmptyBar%%Empty%
Display:
SoundGet, currsnd
if currsnd1 <> %currsnd%
{
TrayTip,Volume, %curr% %currsnd1%`% ,,17
currsnd1 = %currsnd%
}
setenv, presstime, %A_MDay%%A_hour%%A_Min%%A_Sec%
envadd, presstime, 2
SetTimer, SplashOff, On
return
Splashoff:
setenv, presstime2, %A_MDay%%A_hour%%A_Min%%A_Sec%
ifgreaterorequal, presstime2, %presstime%
{
TrayTip
SetTimer, SplashOff, off
}
return
;___________________________________________
;_____Hotkey Customisation Section__________
; User defined hotkeys here
^+WheelUp::
Volume_Up:: ;comment this line if u uncomment the ones below.
;#up:: ;Uncomment to assign Vol Up to Win-Up
#MaxHotkeysPerInterval 50
SoundSet, +1
SoundGet, currsnd
mark=0
curr=%EmptyBar%
loopup:
mark += 1
iflessorequal,mark, %currsnd%,StringReplace, curr, curr,%Empty%,%Full%
iflessorequal,mark, %currsnd%, goto, loopup
gosub, display
return
^+WheelDown::
Volume_Down:: ;comment this line if u uncomment the ones below.
;#down:: ;Uncomment to assign Vol Down to Win-Down
#MaxHotkeysPerInterval 50
SoundSet, -1
SoundGet, currsnd
mark=0
curr=%EmptyBar%
loopdown:
mark += 1
iflessorequal,mark, %currsnd%,StringReplace, curr, curr,%Empty%,%Full%
iflessorequal,mark, %currsnd%, goto, loopdown
gosub, display
return
;___________________________________________
;Also Remove Comment Marks /* and */ to enable mute detection
/*
;__________MUTE DETECTION BY COMPUBOY_R
CheckMute:
SoundGet,checkmute,,MUTE
if checkmute = On
{
TrayTip,Volume,MUTE,,1
mutetray = yes
}
else
{
if mutetray = yes
{
TrayTip
mutetray = no
}
}
return
*/