Skip to content

Instantly share code, notes, and snippets.

@brian-mcallister-lab49
Last active May 14, 2020 13:34
Show Gist options
  • Save brian-mcallister-lab49/a6ea15bbd7bfafe6255331bca6e31580 to your computer and use it in GitHub Desktop.
Save brian-mcallister-lab49/a6ea15bbd7bfafe6255331bca6e31580 to your computer and use it in GitHub Desktop.
TIL-Lab49/Mute your microphone with a global keyboard shortcut.
on getMicrophoneVolume()
input volume of (get volume settings)
end getMicrophoneVolume
on disableMicrophone()
set volume input volume 0
end disableMicrophone
on enableMicrophone()
set volume input volume 100
end enableMicrophone
if getMicrophoneVolume() is greater than 0 then
disableMicrophone()
else
enableMicrophone()
end if
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment