Mic mute/Unmute Toggle is not working

Mic mute/Unmute Toggle is not working

Trying to toggle Mute/Unmute for my microphone on the latest windows 10 build but its not working

what I'm trying to do below in the code is toggle the mic and each time I do toggle the mic a notification should popup with the current state of the mic but its not working

F8::
    Run nircmd.exe mutesysvolume 2 microphone
    SoundGet, microphone_mute, Microphone, mute
    if (microphone_mute = "Off"){
        TrayTip MicState, ON
    } else(
        TrayTip MicState, OFF
    )
    Return

相关内容