Skip to content

Instantly share code, notes, and snippets.

@EntranceJew
EntranceJew / reset_audio_mixers.ahk
Created June 27, 2018 01:20
I wrote an AutoHotkey script to toggle "Listen to this device" for all windows recording devices, because hot-plugging certain USB devices doesn't reset Windows' loopbacks.
; Y'all want a pringle say fuck that.
; For this to work you need to have the audio mixer be the first thing to the right of the system tray hidden icons.
SetKeyDelay, 78, 45
; Open "Sound" window.
; WinActivate, ahk_class Shell_TrayWnd
Send, {LWin Down}{b}{LWin Up}
Sleep, 33
Send, {Right}