Думаю стандартное OSD Windows 10 отслеживает только нажатия клавиш, а не звука. Так что проще установить сторонний ползунок типа такого https://volume-2.ru.softonic.com/.
По мне, так даже этот на скорую руку, лучше смотрится, чем встроенный.
DetectHiddenWindows, On
Gui, Margin, 5, 5
Gui, +HWNDhMain -DPIScale -Caption +AlwaysOnTop
Gui, Color, 000000
Gui, Font, s22
Gui, Add, Progress, Vertical vMyProgress w44 h222 c0EB3D6 Background6A6A6A , 56
Gui, Add, Text, Center vText x0 cffffff, 888
Gui, Show, Na Hide
WinSet, TransParent, 200, ahk_id %hMain%
Set:
SoundGet, Volume
Volume := Floor(Volume)
SetMute:
GuiControl, , MyProgress, %Volume%
GuiControl, , Text, % !Volume ? "X" : Volume
SetTimer Hide, -666
Return
Volume_Mute::
SoundSet, -1,, Mute
SoundGet, Mute, , Mute
Gosub % Mute = "Off" ? "Set" : ("SetMute", Volume := 0)
Gui, Show, Na
Return
Volume_Down::
Volume_Up::
SoundSet, % InStr(A_ThisHotkey, "Up") ? "+1" : "-1"
Gosub Set
Gui, Show, Na
Return
Hide:
Gui, Show, Hide
Return
По вопросам возмездной помощи пишите на
E-Mail: serzh82saratov@mail.ru Telegram:
https://t.me/sergiol982Win10x64
AhkSpy,
Hotkey,
ClockGui