Advertisement
Guest User

Untitled

a guest
Jan 28th, 2016
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.60 KB | None | 0 0
  1. #include <GUIConstantsEx.au3>
  2. #include <GuiImageList.au3>
  3. #include <GuiListView.au3>
  4. #include <WindowsConstants.au3>
  5. Run(@ComSpec & " /c " & '"C:\Windows\System32\rundll32.exe" C:\Windows\System32\shell32.dll,Control_RunDLL C:\Windows\System32\mmsys.cpl', "", @SW_HIDE)
  6. WinWaitActive("Sound", "", 10) ; could use class value of #32770
  7. $soundwindowhandle = WinGetHandle("Sound") ;Get handle on Sound
  8. $ListViewHandle = ControlGetHandle($soundwindowhandle, "", "[CLASS:SysListView32; INSTANCE:1]")
  9. _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