|
楼主 |
发表于 2009-11-5 23:06:48
|
显示全部楼层
#NoTrayIcon
#Region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_outfile=调节声音.exe
#EndRegion ;**** 参数创建于 ACNWrapper_GUI ****
func change()
run("c:\windows\system32\SNDVOL32.EXE")
WinWaitActive("音量控制","")
send("!PR")
WinWaitActive("属性","混音器")
ControlCommand ("属性","混音器","Button3","check")
EndFunc
func turn()
WinWaitActive("录音控制","线路输入")
ControlCommand ("录音控制","线路输入","Button5","check")
winclose("录音控制")
msgbox(4096,"调整成功!","已成功调整,请测试")
EndFunc
run("c:\windows\system32\SNDVOL32.EXE /r")
WinWaitActive("录音控制","")
$temp=ControlGetText("录音控制","","Static22")
$temp2=ControlGetText("录音控制","","Static13")
$temp3=ControlGetText("录音控制","","Static4")
if $temp=="后麦克风"AND $temp2=="麦克风"AND $temp3="线路输入" then
WinWaitActive("录音控制","线路输入")
ControlCommand ("录音控制","线路输入","Button5","check")
winclose("录音控制")
msgbox(4096,"调整成功!","已成功调整,请测试")
EndIf
if $temp==""AND $temp2==""AND $temp3="线路输入" then
winclose("录音控制")
change()
send("{TAB}")
send("{DOWN}")
send("{DOWN}")
send("{SPACE}")
send("{DOWN}")
send("{SPACE}")
ControlCommand ("属性","混音器","Button5","check")
turn()
winclose("录音控制")
exit
EndIf
if $temp==""AND $temp2==""AND $temp3="麦克风" then
winclose("录音控制")
change()
send("{TAB}")
send("{DOWN}")
send("{SPACE}")
send("{DOWN}")
send("{DOWN}")
send("{SPACE}")
ControlCommand ("属性","混音器","Button5","check")
turn()
winclose("录音控制")
exit
EndIf
if $temp==""AND $temp2==""AND $temp3="立体声混音" then
winclose("录音控制")
change()
send("{TAB}")
send("{SPACE}")
send("{DOWN}")
send("{SPACE}")
send("{DOWN}")
send("{SPACE}")
send("{DOWN}")
send("{SPACE}")
ControlCommand ("属性","混音器","Button5","check")
turn()
winclose("录音控制")
exit
EndIf |
|