So if I'm reading the manual correctly this should toggle the itunes mute. From mute to unmute, but it will only mute the player, can't get it t unmute? is it the script? or the documentation is incorrect?
' ************** Toggle Itunes mute On/Off
Sub toggleItunesMute(Optional ByVal pParms As String = "")
Dim pi As Object
Dim MusicApi As Object
pi = hs.Plugin("iTunes")
MusicApi = pi.GetMusicAPI(1)
If MusicApi.playerMute Then
hs.writelog("info", "Setting player to unmute")
MusicApi.playerMute = False
Else
hs.writelog("info", "Setting player to mute")
MusicApi.playerMute = True
End if
End Sub
' ************** Toggle Itunes mute On/Off
Sub toggleItunesMute(Optional ByVal pParms As String = "")
Dim pi As Object
Dim MusicApi As Object
pi = hs.Plugin("iTunes")
MusicApi = pi.GetMusicAPI(1)
If MusicApi.playerMute Then
hs.writelog("info", "Setting player to unmute")
MusicApi.playerMute = False
Else
hs.writelog("info", "Setting player to mute")
MusicApi.playerMute = True
End if
End Sub