Created
May 18, 2015 11:07
-
-
Save Sut3kh/59f0b8092ea08ff0110c to your computer and use it in GitHub Desktop.
Global Push to Talk Autohotkey script
This file contains 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
; create and run 'SOUNDCARD ANALYSIS.ahk' from https://www.autohotkey.com/docs/commands/SoundSet.htm | |
; screenshot and close window | |
; mute the microphone in Recording > Properties > Levels | |
; run 'SOUNDCARD ANALYSIS.ahk' again and find the row where MUTE has changed to 'On' | |
; replace [#MIXER_ID] with changed row, i.e. 'SoundSet $val, Master, Mute, 11' | |
SS( $val ) | |
{ | |
SoundSet $val, Master, Mute, [#MIXER_ID] | |
} | |
; xbutton2 = Mouse Button 5 (* ignores modifier keys such as Shift and Ctrl) | |
*xbutton2:: | |
UnMute() | |
Loop | |
{ | |
Sleep, 10 | |
GetKeyState, State, xbutton2, P | |
if State = U | |
break | |
} | |
SetTimer, Mute, 200 | |
return | |
Mute: | |
SetTimer, Mute, Off | |
Mute() | |
return | |
Mute() | |
{ | |
SS(1) | |
} | |
UnMute() | |
{ | |
SetTimer, Mute, Off | |
SS(0) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment