All my meetings are now virtual, and I found it irritating fumbling to unmute myself to speak.
So I created my own button to toggle the mute. My code is specifically for MS Teams, because that's what we use at work.
I wanted to use a digispark, because they're small and cheap, but those appear to be unavailable. So my second choice was an Arduino Micro which has native USB support to emulate a keyboard.
#UseHook ; Ctrl-Alt-M ^!M:: WinGet, active_id, ID, A SetTitleMatchMode, 2 ;DetectHiddenWindows, On WinGet, fensterID, List, ahk_exe Teams.exe WinActivate, % "ahk_id " fensterID1 Send ^+m SoundBeep, 200, 100 WinActivate, ahk_id %active_id% Return