Jump to content

problem with SysListView321


Recommended Posts

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 by RajeshGauswami
Link to comment
Share on other sites

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 by mikell
Link to comment
Share on other sites

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)

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...