Jump to content
Sign in to follow this  

Virtual List-View GetText

Recommended Posts


The list-view data is managed by the program itself (it has LVS_OWNERDATA set). That means data is not stored or accessed in the standard way. There is a second, different way to access the data and the code you are using does not try the alternate way. The control is what's called a "Virtual List-View" and you can find information on MSDN for how to work with it.

I'm trying to automate TrueCrypt, but I'm unable to get the text from it's listviews. Figure What Malik stated is the cause of this. I did find info on MSDN on virtual list-views but to be honest it's all swahili to me.

Anybody got some info on this "alternate way" or how to get text from virtual-listviews?

Code I'm using right now which isn't able to retrieve text (but is able to retrieve itemcount, selected item etc.)

ControlListview("TrueCrypt", "&Create Volume", "SysListView321", "GetText", 3, 1)

for $subitem I tried all subitem values.

Share this post

Link to post
Share on other sites

Did you try something like this?

#Include <Array.au3>
#include <GuiListView.au3>
$hControl = ControlGetHandle ("TrueCrypt", "", "SysListView321"); Obviously you'll put the info from the AU3Info tool for the list view in this command
$aLView = _GUICtrlListView_GetItemTextArray($hControl) ; Assuming you have an item selected
_ArrayDisplay ($aLView)

MsgBox (0, "Item Count", _GUICtrlListView_GetItemCount($hControl))

Oh, and you double-posted, please delete the duplicate post.

Edited by exodius

Share this post

Link to post
Share on other sites

Hadn't tried it yet, but I did now.

Unfortunately an $array[6], with no values (except for $array[0] = 5 ofcourse).

Edited by Cusem

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.