Config file added
This commit is contained in:
parent
4b32df8d0d
commit
239f751f2b
@ -5,8 +5,41 @@ Menu, Tray, NoStandard
|
||||
Menu, Tray, Add, Exit, MenuExit ; Creates a new menu item.
|
||||
|
||||
|
||||
device1:="Headset"
|
||||
device2:="Lautsprecher"
|
||||
|
||||
; if not A_IsAdmin
|
||||
; {
|
||||
; msgbox, 48,%title% Administrator Rights Warning. Please run as Admin.
|
||||
; sleep, 250
|
||||
; exitapp
|
||||
; }
|
||||
|
||||
installed_in=%A_ScriptDir%
|
||||
IfExist, %installed_in%\hyperaudio.ini
|
||||
{
|
||||
iniread, audioname1, %installed_in%\hyperaudio.ini, Devices, Output1, Headset
|
||||
iniread, audioname2, %installed_in%\hyperaudio.ini, Devices, Output2, Lautsprecher
|
||||
} else {
|
||||
iniwrite, Headset, %installed_in%\hyperaudio.ini, Devices, Output1
|
||||
iniwrite, Lautsprecher, %installed_in%\hyperaudio.ini, Devices, Output2
|
||||
iniread, audioname1, %installed_in%\hyperaudio.ini, Devices, Output1, Headset
|
||||
iniread, audioname2, %installed_in%\hyperaudio.ini, Devices, Output2, Lautsprecher
|
||||
}
|
||||
; installed_in=%A_ScriptDir%\
|
||||
; goto start_install
|
||||
|
||||
; start_install:
|
||||
; IfExist, %installed_in%\hyperaudio.ini
|
||||
; {
|
||||
; ; Filedelete, %A_WorkingDir%\%fishmongernickname%_setup.exe
|
||||
; }
|
||||
|
||||
|
||||
device1:=audioname2
|
||||
device2:=audioname1
|
||||
|
||||
; MsgBox, % device1
|
||||
; MsgBox, % device2
|
||||
|
||||
; http://www.daveamenta.com/2011-05/programmatically-or-command-line-change-the-default-sound-playback-device-in-windows-7/
|
||||
Devices := {}
|
||||
IMMDeviceEnumerator := ComObjCreate("{BCDE0395-E52F-467C-8E3D-C4579291692E}", "{A95664D2-9614-4F35-A746-DE8DB63617E6}")
|
||||
|
Loading…
Reference in New Issue
Block a user