I would like to have an AHK script that mutes / unmutes my mic in the ongoing Microsoft Teams meeting if I press a button (play/pause or volume up / down) on my bluetooth headphone. I found an existing solution for that, what is basically working, but it seems if spotify or media player (or I guess any simular app) is running it won't pass the key to AHK, so my script doesn not work in this case. I wrote a simple script to test it like:
Code: Select all
#Persistent #InstallKeybdHook Media_Play_Pause:: MsgBox, Pressed
is there a way to always get the media keyevent?
Thank you in advance!