RajeshGauswami Posted April 26, 2014 Posted April 26, 2014 (edited) I spend my whole day to click on [CLASS:SysListView321; INSTANCE:1] in Rcording Control Title Window ..>> In Properties ..by !p... then i want to check only Stereo Mix And Microphone and other should be deselect... I dont know how to do i am begginer please help me.. This is my code ... Thank in advance Run("C:\Windows\System32\sndvol32.exe -r") WinWaitActive("Recording Control") WinSetState("Recording Control","",@SW_HIDE) Send("!p") Send("r") Sleep(1000) $hListView = ControlGetHandle("Properties","","[CLASS:SysListView321; INSTANCE:1]") Edited April 26, 2014 by RajeshGauswami
mikell Posted April 27, 2014 Posted April 27, 2014 (edited) ClassnameNN: SysListView321 Advanced (Class): [CLASS:SysListView32; INSTANCE:1] Edit BTW this works well on my XP (french language) #include <GuiListView.au3> Run("C:\WINDOWS\system32\sndvol32.exe -r", "", @SW_HIDE) WinWaitActive("Contrôle d'enregistrement") Send("!o") Send("{enter}") $hWnd = WinWaitActive("Propriétés") $hListView = ControlGetHandle($hWnd,"","[CLASS:SysListView32; INSTANCE:1]") ; $count = ControlListView($hWnd,"", $hListView, "GetItemCount") ControlFocus($hWnd,"", $hListView) _GUICtrlListView_SetItemChecked ($hListView, -1, false) _GUICtrlListView_SetItemChecked ($hListView, 2, true) _GUICtrlListView_SetItemChecked ($hListView, 4, true) Edited April 27, 2014 by mikell
RajeshGauswami Posted April 27, 2014 Author Posted April 27, 2014 I am getting error parsing function call
mikell Posted April 27, 2014 Posted April 27, 2014 As I said this works on my french XP (w/ AutoIt 3.3.10.0) , so you need to change in this code the window titles and the keys to send
RajeshGauswami Posted April 27, 2014 Author Posted April 27, 2014 Code working with my system : #include <GuiListView.au3> Run("C:\Windows\System32\sndvol32.exe -r") WinWait("Recording Control") Send("!p") Send("r") $hWnd = WinWaitActive("Properties") $hListView = ControlGetHandle($hWnd,"","[CLASS:SysListView32; INSTANCE:1]") ; $count = ControlListView($hWnd,"", $hListView, "GetItemCount") ControlFocus($hWnd,"", $hListView) _GUICtrlListView_SetItemChecked ($hListView, -1, false) _GUICtrlListView_SetItemChecked ($hListView, 1, true) _GUICtrlListView_SetItemChecked ($hListView, 4, true)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now