Skip to content

Instantly share code, notes, and snippets.

@aderusha
Created December 20, 2021 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aderusha/64729400fe4796919978cbd2a5558f38 to your computer and use it in GitHub Desktop.
Save aderusha/64729400fe4796919978cbd2a5558f38 to your computer and use it in GitHub Desktop.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Bose QC35/QC45 - "action" button between volume buttons on right earcup
;; single press: Media_Play_Pause
;; double press: Media_Next
;; triple press: Media_Prev
micName := "Bose QC35 II"
micMute := SoundGetMute( , micName)
if (micMute > 0)
{
TraySetIcon("SndVolSSO.dll", 12)
A_IconTip := micName . " Microphone muted"
}
else
{
TraySetIcon("SndVolSSO.dll", 13)
A_IconTip := micName . " Microphone active"
}
Media_Play_Pause::
{
micMute := SoundGetMute( , micName)
if (micMute > 0)
{
SoundSetMute 0, , micName
SoundBeep 700, 500
TraySetIcon("SndVolSSO.dll", 13)
A_IconTip := micName . " Microphone active"
}
else
{
SoundSetMute 1, , micName
SoundBeep 350, 500
TraySetIcon("SndVolSSO.dll", 12)
A_IconTip := micName . " Microphone muted"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment