Created
December 20, 2021 15:06
-
-
Save aderusha/64729400fe4796919978cbd2a5558f38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; 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