Skip to content

Instantly share code, notes, and snippets.

@EntranceJew
Created June 27, 2018 01:20
Show Gist options
  • Select an option

  • Save EntranceJew/c2bc96a553d218b76e48e0eb924655c2 to your computer and use it in GitHub Desktop.

Select an option

Save EntranceJew/c2bc96a553d218b76e48e0eb924655c2 to your computer and use it in GitHub Desktop.

Revisions

  1. EntranceJew revised this gist Jun 27, 2018. 1 changed file with 0 additions and 67 deletions.
    67 changes: 0 additions & 67 deletions reset_audio_mixers.ahk
    Original file line number Diff line number Diff line change
    @@ -1,70 +1,3 @@

    Save New Duplicate & Edit Just Text Twitter
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    ; 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.

  2. EntranceJew created this gist Jun 27, 2018.
    132 changes: 132 additions & 0 deletions reset_audio_mixers.ahk
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,132 @@

    Save New Duplicate & Edit Just Text Twitter
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    ; 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}
    Sleep, 33
    Send, {AppsKey}
    Sleep, 33
    Send, {s}
    Sleep, 330
    WinActivate, Sound ahk_class #32770
    WinWaitActive, Sound ahk_class #32770
    ; Get to Recording tab.
    Send, {RControl Down}{PgUp}{RControl Up}
    Sleep, 33
    Send, {Down}{PgDn}

    BreakFree := false
    ThisWindow := ""
    OldWindow := "bah"

    while (ThisWindow != OldWindow) {
    ; Open the properties window
    Send, {LAlt Down}{p}{LAlt Up}
    Sleep, 330
    WinWaitActive, ahk_class #32770, Properties

    OldWindow := ThisWindow
    WinGetTitle, ThisWindow, ahk_class #32770
    if( ThisWindow = OldWindow or ThisWindow = ""){
    BreakFree := true
    } else {
    ; WinActivate, VAC3 Guests Properties ahk_class #32770
    ; Get to the "Listen" tab.
    Send, {RControl Down}{PgDn}{RControl Up}
    Sleep, 33
    ; Toggle "Listen to this device".
    Send, {Space}
    Sleep, 33
    ; Apply
    Send, {LAlt Down}{p}{LAlt Up}
    Sleep, 33
    ; Re-toggle "Listen to this device".
    Send, {Space}
    Sleep, 33
    ; Re-apply
    Send, {LAlt Down}{p}{LAlt Up}
    Sleep, 33
    ; Close
    Send, {Escape}
    Sleep, 33
    ; Advance upwards.
    Send, {Up}
    Sleep, 33
    }
    }

    ; Close out of this properties and close out of everything
    Send, {Escape}
    Send, {Escape}