Jump to content

ControlListView on SysListView321


Recommended Posts

I have a program (that seems to be written in a standard way) that has some Edit, ComboBox and one SysListView321 that contains some text.

Like this:

Posted Image

I want to get lines of the text in the SysListView321, so I write:

$item = ControlListView('Lightwave - AutoBench', "", 'SysListView321', "GetSelected")
MsgBox(0, "", ControlListView('Lightwave - AutoBench', "", 'SysListView321', "GetText", $item) )

but I get only an empty string.

Also the selection was made manually with the mouse.

If I do something like this:

ControlListView('Lightwave', '', 'SysListView321', 'Select', $renderRow)
or
ControlListView('Lightwave - AutoBench', "", 'SysListView321', "SelectAll" )

they give always '1', but the @error is 0.

I don't know what is wrong here, so PLEASE Help me.

Link to post
Share on other sites

What kind of result is sent into the $item variable? Does it vary with different item selections or is it even being initially set to a useful value?

Edit: Variable typo.

Edited by LxP
Link to post
Share on other sites

No, I see the ClassName, and other parameters and the text in the wxWindowClass1 under 'Visible Window Text'.

Do you mean I should see the content of a listview in the Autoit Window Info?

Because also in other listviews like that of Explorer I see nothing of the lists.

EDIT:

I found out what it seemed the problem:

This program has a 'submit' Yes - No option. I made my tests with No-submit. Now while I was reading your post, I made, for error, a test with submit-Yes and now it seems to work!

So it seems a problem of this program not exposing text correctly when it is in submit-'no', but I see text on screen and I can maually select it...

Anyway thank you, now I have the problem of blocking the data sent to internet from this program. Any hint? Or maybe it is better to start a new thread?

Edited by frank10
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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...