This great blog post just needs a simple change.
Instead of (Meeting) you should pattern match for “Microsoft Teams”.
All the MS Teams windows have this in their title, luckily and Teams window allows for the input eof the Mute command shortcut.
My final script looks like this now:
SetTitleMatchMode, 2 ; 2 = a partial match on the title ; MICROSOFT TEAMS - Toggle Mute +^!M:: WinGet, winid, ID, A ; Save the current window ID if WinExist("Microsoft Teams") ;Yes, every Teams meeting has that in the title bar - even if it's not visible to you { WinActivate ; Without any parameters this activates the previously retrieved window - in this case your meeting Send, ^+M ; Teams' native Mute shortcut WinActivate ahk_id %winid% ; Restore previous window focus return } ; POWERPOINT - Next slide +^!N:: WinGet, winid, ID, A if WinExist("PowerPoint Slide Show") ;This works if you're using Presenter View too { WinActivate Send, N WinActivate ahk_id %winid% return } ; POWERPOINT - Previous slide +^!P:: WinGet, winid, ID, A if WinExist("PowerPoint Slide Show") { WinActivate Send, P WinActivate ahk_id %winid% return }
Put this in a file called mute_team.ahk and put in a scripts folder e.g. in your Documents folder. Then create a shortcut to the file and place it in your startup folder (can be opened using Win+R and typing shell:startup )