Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

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 »

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!
User avatar
yokel22
Experienced User
Posts: 265
Joined: Thu Feb 05, 2015 5:56 pm
Location: U.S. - Kansas city

Re: Turn Mute On Event not working?

Post by yokel22 »

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