Forum Discussion
graemec5
Dec 02, 2020Brass Contributor
Media Keys and Teams notifications
If I use keyboard media keys to pause music when I receive a call in teams, the notification sound doesn't seem to get dismissed when I answer the call. So, when I later press play, it also resumes p...
- Dec 28, 2020Hi graemec5
Known issue, as raised here on uservoice
https://microsoftteams.uservoice.com/forums/555103-public/suggestions/39956326-media-keys-affecting-teams-web-app
If you go to that uservoice, a few comments down you should see a solution to this: go to avatar > settings > permissions > turn off midi device. People have reported that it has solved it for them
Hope this resolves and answers your question
Best, Chris
Lathejockey81
Mar 30, 2023Copper Contributor
I get Teams calls all day and listen to music on Spotify. I got so tired of this stupid problem that I wrote an autohotkey script which redirects the media buttons to Spotify shortcuts. It may be more verbose than is necessary - I'm not an AHK expert by any means. You can just put a shortcut to this in your startup folder (with Autohotkey installed, of course) and it will activate at bootup. I was so excited about the QOL improvement (I was closing and reopening Teams after every call!) I figured I would share it here. I know not everyone will have the permissions to run something like that, but for those that do, this is a simple permanent fix.
#Requires AutoHotkey v2.0
If WinExist("ahk_exe Teams.exe") and WinExist("ahk_exe Spotify.exe")
{
Media_Play_Pause::SpotifyKey("{Space}")
Media_Next::SpotifyKey("^{Right}")
Media_Prev::SpotifyKey("^{Left}")
}
SpotifyKey(key)
{
active := WinExist("A")
spotifyWin := WinExist("ahk_exe Spotify.exe")
DetectHiddenWindows("On")
ControlFocus(spotifyWin)
ControlSend key,, "ahk_exe Spotify.exe"
if (WinExist(active))
{
ControlFocus(active)
}
DetectHiddenWindows("Off")
}
JT-WG
Mar 30, 2023Copper Contributor
Perfect, my exact use case. Thanks, I will be trying that!