|
发表于 2009-6-22 16:49:07
|
显示全部楼层
我来补充一下,方便后来人!
#Include <GuiListView.au3>
run("sndvol32.exe")
WinWait("[class:Volume Control]")
WinActivate("[class:Volume Control]")
WinMenuSelectItem("[class:Volume Control]","音量","选项(&P)","属性(&R)")
WinActivate("属性","显示下列音量控制:")
$hWnd = ControlGetHandle("属性","", "SysListView321")
_GUICtrlListView_SetItemChecked($hWnd, -1, False) ;取消所有选择
_GUICtrlListView_SetItemChecked($hWnd, 0)
_GUICtrlListView_SetItemChecked($hWnd, 1)
_GUICtrlListView_SetItemChecked($hWnd, 3)
ControlClick("属性","","Button5")
WinClose("[class:Volume Control]") |
|