Skip to content

Instantly share code, notes, and snippets.

@ScottJWalter
Last active February 1, 2024 07:28
Show Gist options
  • Save ScottJWalter/1807cb23637d72b96807d8ced8887d64 to your computer and use it in GitHub Desktop.
Save ScottJWalter/1807cb23637d72b96807d8ced8887d64 to your computer and use it in GitHub Desktop.
Toggles the system default microphone through AutoHotKey
; ---------------------------------------------------------------------------------------------------------------------
; Ctrl+Alt+SPECIAL+M --> Toggle Microphone
;
^!#m:: SoundSetMute !SoundGetMute(, "Microphone"),, "Microphone"
; ---------------------------------------------------------------------------------------------------------------------
; Ctrl+Alt+Shift+SPECIAL+M --> Turn Microphone OFF
;
^!+#M:: SoundSetMute true,, "Microphone"
@ScottJWalter
Copy link
Author

The latest version of iCUE has mic muting baked in ... if you have VoiceCommand installed and set up (account required). This method doesn't require anything, as iCUE also let's you bind keyboard actions to any of your keyboard keys, including the Gx keys.

So:

  1. Set this script up in your AHK installation. Change the keymappings as needed (remember, you're not actually going to have to chord this key combo, you'll be programming iCUE to do that for you, so be as obtuse and unusual as you wish).
  2. Use iCUE to configure a Gx key on your keyboard to fire the "Toggle Microphone" key chord.

That's it. You're golden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment