2 changed files with 0 additions and 56 deletions
@ -1,23 +0,0 @@ |
|||||
; Script can be directly run by or compiled into an .exe by the open-source software AutoHotkey |
|
||||
; https://www.autohotkey.com |
|
||||
|
|
||||
; |
|
||||
; Front Matter |
|
||||
; |
|
||||
|
|
||||
; Include general library |
|
||||
#Include ../lib/Prelude.ahk |
|
||||
|
|
||||
; Keep script running |
|
||||
#Persistent |
|
||||
|
|
||||
SetTimer, Autosave, 300000 |
|
||||
|
|
||||
Autosave: |
|
||||
Send {Ctrl down} |
|
||||
Sleep 50 |
|
||||
Send {s down} |
|
||||
Sleep 50 |
|
||||
Send {s up} |
|
||||
Sleep 50 |
|
||||
Send {Ctrl up} |
|
@ -1,33 +0,0 @@ |
|||||
; Include general library |
|
||||
#Include ../lib/Prelude.ahk |
|
||||
|
|
||||
; Don't show a tray icon |
|
||||
#NoTrayIcon |
|
||||
|
|
||||
; Which device the microphone is |
|
||||
; Use third party AudioFinder script to figure this out |
|
||||
Device := 9 |
|
||||
|
|
||||
MuteMic() { |
|
||||
local MM |
|
||||
SoundSet, +1, MASTER, MUTE, %Device% |
|
||||
If ( ErrorLevel != 0 ) { |
|
||||
MsgBox, Error: %ErrorLevel% |
|
||||
} |
|
||||
SoundGet, MM, MASTER, MUTE, %Device% |
|
||||
#Persistent |
|
||||
ToolTip, % (MM == "On" ? "Microphone muted" : "Microphone online") |
|
||||
SetTimer, RemoveMuteMicTooltip, 700 |
|
||||
return |
|
||||
} |
|
||||
|
|
||||
RemoveMuteMicTooltip: |
|
||||
SetTimer, RemoveMuteMicTooltip, Off |
|
||||
ToolTip |
|
||||
return |
|
||||
|
|
||||
; |
|
||||
; Hotkey |
|
||||
; |
|
||||
|
|
||||
^Home::MuteMic() |
|
Loading…
Reference in new issue