Jump to content

V 3.2 and _GUICtrlListViewGetItemTextArray issue/help


tickling
 Share

Recommended Posts

I had this fragment of code on version 3.1.124 and it was working fine (meaning, read the list view fields correctly):

$slhandle = ControlGetHandle($sltitle, "", "ListView20WndClass1")
$SubItemArray = _GUICtrlListViewGetItemTextArray ($slhandle, $scanindex)
If (Not IsArray($SubItemArray)) Then
     Msgbox(0,"", "Not Array index = " & $ScanIndex, 5000)
     exit
endif

Now on version 3.2.0 and on the latest beta, the code fails: The application that this automates crashes (it did not change, no new version or anything) and autoit execution goes into the "if" meaning $subitemarray is not an array.

The listview item in question has 6 sub text fields all non blank. Variable $scanindex gets a valid value before the call.

Anyone has any hints here ? Thanks

Later Edit: It seems that the line that crashes the automated application is

DllCall("user32.dll", "int", "SendMessage", "hwnd", $h_listview, "int", $LVM_GETITEMTEXTA, "int", $i_Item, "ptr", DllStructGetPtr($p))

in the function _GUICtrlListViewGetItemText

The application did not change; Only autoit version. Any hope ?

Edited by tickling
Link to comment
Share on other sites

My suspicion is that it has to do with getting the sub item count, the following include files are modified

give this a try and see if it works and let me know.

Gary

Edited by gafrost

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Link to comment
Share on other sites

I am getting this

Line 812 GuiListView.au3: $LVCF_SUBITEM not declared

Later edit: if this is of any worth, _GUICtrlListViewGetSubItemsCount($slhandle) returned 6 as it should (the array should have 6 subitems) (before this last patch)

Edited by tickling
Link to comment
Share on other sites

I am getting this

Line 812 GuiListView.au3: $LVCF_SUBITEM not declared

Later edit: if this is of any worth, _GUICtrlListViewGetSubItemsCount($slhandle) returned 6 as it should (the array should have 6 subitems) (before this last patch)

Sorry about that, could've sworn that it worked, but I might of ran the release instead of beta.

Not sure what the problem is with it crashing your app.

SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

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...