Skip to content

Instantly share code, notes, and snippets.

@lancepioch
Created August 12, 2015 01:39
Show Gist options
  • Save lancepioch/cfe922f86d28e16e6142 to your computer and use it in GitHub Desktop.
Save lancepioch/cfe922f86d28e16e6142 to your computer and use it in GitHub Desktop.
Automatic Setup for Virtual Audio Cables
$vac = "C:\Program Files\Virtual Audio Cable\audiorepeater.exe";
$ar = "Audio Repeater";
$ss = "SelectString";
Run($vac);
WinWait($ar);
ControlCommand($ar, "", 1001, $ss, "Microphone");
ControlCommand($ar, "", 1002, $ss, "Line 2");
ControlClick($ar, "", 1000, "left", 1);
Run($vac);
WinWait($ar);
ControlCommand($ar, "", 1001, $ss, "Line 1");
ControlCommand($ar, "", 1002, $ss, "Line 2");
ControlClick($ar, "", 1000, "left", 1);
Run($vac);
WinWait($ar);
ControlCommand($ar, "", 1001, $ss, "Line 1");
ControlCommand($ar, "", 1002, $ss, "Speakers");
ControlClick($ar, "", 1000, "left", 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment