I hope there are people out there which have installed VirtualDub (Open Source) or are willing to install it to help me
What I want to do:
I want to see what filters are set and being able to (de-)select, delete or manipulate them...
Problem:
I don't get all the informations I need out of the SysListView32 control and so I can't manipulate it with AutoIt. Some commands work (like "GetItemCount"), but most does not (like "GetText"). The control seems to be no default SysListView32 - Please look at the attachement if you don't have installed VirtualDub.
Example:
Open up VirtualDub, press CTRL+F to open up the filters dialog, and add some filters of your choice and "null transform" as I use it's name in the example code. Then run the code below.
#Include <GuiListView.au3> $filters_title = "[TITLE:Filters]" $filters_cid = "[CLASS:SysListView32; INSTANCE:1]" $filters_hwnd = ControlGetHandle($filters_title,"",$filters_cid) $clv_filters_count = ControlListView($filters_title,"",$filters_cid,"GetItemCount") $clv_filters_select = ControlListView($filters_title,"",$filters_cid,"GetSelected") $clv_filters_text = ControlListView($filters_title,"",$filters_cid,"GetText", 0, 0) ; does not work $clv_filters_0trans = ControlListView($filters_title,"",$filters_cid,"FindItem","null transform") ; does not work $gui_filters_count = _GUICtrlListView_GetItemCount($filters_hwnd) $gui_filters_select = _GUICtrlListView_GetItemSelected ($filters_hwnd,1) $gui_filters_text = _GUICtrlListView_GetItemTextString($filters_hwnd,-1) ; Only 3 separators as result $gui_filters_0trans = _GUICtrlListView_FindText($filters_hwnd,"null transform",-1,True) ; I get a 10-char number (?) ConsoleWrite("ControlListView ::: " & "Filter Count: " & $clv_filters_count & " / Selected: " & $clv_filters_select & " / Item Text: " & $clv_filters_text & " / null transform: " & $clv_filters_0trans & @CRLF) ConsoleWrite("_GUICtrlListView ::: " & "Filter Count: " & $gui_filters_count & " / Selected: " & $gui_filters_select & " / Item Text: " & $gui_filters_text & " / null transform: " & $gui_filters_0trans & @CRLF)
Any chance I can work with the control? I really hope you can help me
Edited by bumsbomber, 14 April 2012 - 10:57 AM.





