Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <GUIConstantsEx.au3>
- #include <GuiImageList.au3>
- #include <GuiListView.au3>
- #include <WindowsConstants.au3>
- Run(@ComSpec & " /c " & '"C:\Windows\System32\rundll32.exe" C:\Windows\System32\shell32.dll,Control_RunDLL C:\Windows\System32\mmsys.cpl', "", @SW_HIDE)
- WinWaitActive("Sound", "", 10) ; could use class value of #32770
- $soundwindowhandle = WinGetHandle("Sound") ;Get handle on Sound
- $ListViewHandle = ControlGetHandle($soundwindowhandle, "", "[CLASS:SysListView32; INSTANCE:1]")
- _GUICtrlListView_ClickItem($ListViewHandle, 0, "main", True, 2) ;0 is the first item in the list adjust if needed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement