Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

Check to see if audio MUTE on/off?


  • Please log in to reply
2 replies to this topic
SunnySails
  • Guests
  • Last active:
  • Joined: --
Hi, can AHK detect for me if the mute is on or off, and create a variable 1 or 0 likewise based on that examination? :)

Laszlo
  • Moderators
  • 4713 posts
  • Last active: Mar 31 2012 03:17 AM
  • Joined: 14 Feb 2005
SoundGet

YMP
  • Members
  • 424 posts
  • Last active: Apr 05 2012 01:18 AM
  • Joined: 23 Dec 2006
It can, but which component's mute should be tested?
For the Master component, try this:
SoundGet, MuteState, Master, Mute
if ErrorLevel
{
  MsgBox, %ErrorLevel%
  Return
}
if MuteState=On
  MuteState=1
else MuteState=0
MsgBox, %MuteState%
Return