app103,
Ok I missed that earlier but I see now that's what you wrote.
lanux128,
a suggestion: the scripts flickers briefly due to the repeated "gui, destroy" & "gui, show". Add these lines (in red) to only destroy+rebuild the mute OSD text only if its not already present.
------------------
If CheckMute = On
If osd_is_on != 1 {
osd_is_on = 1 Gui, Destroy ;
Gui, Color, EEAA99
Gui +AlwaysOnTop +ToolWindow -Caption +Lastfound
WinSet, TransColor, EEAA99 105 ;105 - level of translucency (range: 0-255)
Gui, Font, s30 Bold cYellow, Tahoma
Gui, Add, Text,x3 y3 w175 h45 Center c000000 BackgroundTrans, Mute %CheckMute%
Gui, Add,Text,x0 y0 w175 h45 Center cFFD300 BackgroundTrans, Mute %CheckMute%
Gui,Show, NoActivate x70 y600 w175 h45 ; some crude positioning co-ordinates
IfExist, %A_WinDir%\System32\sndvol32.exe
Menu, tray, Icon, %A_WinDir%\System32\sndvol32.exe, 4 ; Mute icon
Sleep 3000
}
If CheckMute = Off {
osd_is_on =------------------
(is there some way to combine code block format with text coloring in forum posts?)