Sign in to follow this  
Followers 0
RajeshGauswami

problem with SysListView321

6 posts in this topic

#1 ·  Posted (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 by RajeshGauswami

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 by mikell

Share this post


Link to post
Share on other sites

I am getting error  parsing function call

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Thank you so much i got it ....

Share this post


Link to post
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)

Share this post


Link to post
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
Sign in to follow this  
Followers 0