i have this small routine to mute or unmute and i am trying to make its tooltip show the proper state but is does so in reversed saying on when off
i have tried bolt but bolt give the same result, i commented out the other version and my timer is not included here
Code: Select all
VolumeMute:
SoundSet, +1,, Mute
;SoundGet, Off, , MUTE
SoundGet, On, , MUTE
ToolTip, %On%
;ToolTip, %Off%
SetTimer , RemoveToolTip, -1000
return
Code: Select all
VolumeMute:
muted++
if muted= 1
{
SoundSet, +1,, Mute
ToolTip, Mute
SetTimer , RemoveToolTip, -1000
return
}
else if muted= 2
{
SoundSet, +1,, Mute
ToolTip, Un-Mute
SetTimer , RemoveToolTip, -1000
muted= 0
return
}