Turn Mute On Event not working?

If you have a question or need help, this is the place to be.
Post Reply
issacsim
Posts: 1
Joined: Thu Feb 16, 2017 8:53 pm

Turn Mute On Event not working?

Post by issacsim » Thu Feb 16, 2017 9:03 pm

Hello,

New user here, tried to create new event to mute my PC, clicked on New Event -> System -> Audio -> Turn Mute On.
Does not seem to work on any of the devices from the drop down list.

What am I doing wrong?
Any other functions I could use to mute my PC?

Thanks in advance for any help!

yokel22
Experienced User
Posts: 153
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Turn Mute On Event not working?

Post by yokel22 » Fri Feb 17, 2017 4:54 pm

It sounds like your doing things correctly, though i'm unsure why it's not working for you. I just tested the Mute actions your using & they work fine for me with all system devices. What version of EG are you using? Is there a specific program you want to mute? If so there might be a plugin that will control it directly. There are a number of ways you can go about muting a system input, but as this is such a common function i'd like to solve why this isn't working for you before exploring those. Copy/paste the code below directly into your EventGhost tree. These are working for me being set to the primary sound driver. I threw in a set system volume which you could use alternatively to the mute commands.

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1722">
    <Folder Name="Test Mute">
        <Macro Name="Turn Mute On">
            <Action>
                System.MuteOn(u'NS-32D310NA17 (Intel(R) Display')
            </Action>
        </Macro>
        <Macro Name="Turn Mute Off">
            <Action>
                System.MuteOff(u'Primary Sound Driver')
            </Action>
        </Macro>
        <Macro Name="Set Master Volume #1: 0.00 %">
            <Action>
                System.SetMasterVolume(0.0, u'Primary Sound Driver')
            </Action>
        </Macro>
        <Macro Name="Set Master Volume #1: 100.00 %">
            <Action>
                System.SetMasterVolume(100.0, u'Primary Sound Driver')
            </Action>
        </Macro>
    </Folder>
</EventGhost>

Post Reply