Skip to content

Instantly share code, notes, and snippets.

@necrolyte2
Created December 16, 2018 03:09
Show Gist options
  • Select an option

  • Save necrolyte2/a7cda4a6df472e602f370345ae0b75dd to your computer and use it in GitHub Desktop.

Select an option

Save necrolyte2/a7cda4a6df472e602f370345ae0b75dd to your computer and use it in GitHub Desktop.
Mute Microphone

Quick and dirty way to mute your mic on Windows

  1. Put this script somewhere(Maybe my documents)
  2. Create a shortcut to it
  3. Right click shortcut and select properties
  4. Click in the shortcut box. Press your key combination you want to activate the script(I used CTRL+F7)
  5. Click OK(Or apply then ok if you like to click 2x :) )
Set oShell = CreateObject("WScript.Shell")
oShell.Run("rundll32.exe shell32.dll,Control_RunDLL mmsys.cpl,,recording")
WScript.Sleep(500)
oShell.AppActivate("Sound")
oShell.SendKeys("{DOWN}")
oShell.SendKeys("%p+{TAB}{RIGHT}{RIGHT}{TAB}{TAB} {TAB}{TAB}{ENTER}{ENTER}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment