ahk-micmute
ahk-micmute copied to clipboard
AutoHotKey script for muting and unmuting microphone with mouse buttons
ahk-micmute
AutoHotkey script for muting and unmuting microphone with mouse buttons.
This project is no longer maintained, in favor of MicMuteToggle. While ahk-micmute is more flexible, it is incompatible with some programs; for example, Black Ops 4 will immediately exit if AutoHotKey is running.
Installation
- Install AutoHotkey
- Install
VA.ahkfrom VistaAudio into an AHK library directory, such as%USERPROFILE%\Documents\AutoHotkey\Lib - Either clone this repository, or copy all the files into the same directory
- Run mic-toggle.ahk
Usage
- Hit
XButton1(mouse button 4, a.k.a. 'back') to toggle mute while the button is held - Hit
XButton2(mouse button 5, a.k.a. 'forward') to toggle mute - Configure your software (games, discord, skype etc) to use 'open mic'
This effectively means that mouse button 5 switches you between 'push to talk' and 'push to mute', and mouse button 4 is the PTT/PTM button. It toggles system-wide mute, effectively getting you system-wide PTT/PTM when everything is set to open mic.
Customization
- You can change the buttons to any button that AutoHotkey supports - see their keylist
- When in PTT 'mode', by default, the script will leave the mic open for a fraction of a second after releasing the button, as people usually release it just a little early. You can tune or remove this by finding the 'sleep' line in the script and removing it, or changing the number. The number is the number of milliseconds to leave it live.
License
This script is MIT-licensed.