tickling Posted September 29, 2006 Share Posted September 29, 2006 (edited) 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 September 29, 2006 by tickling Link to comment Share on other sites More sharing options...
GaryFrost Posted September 29, 2006 Share Posted September 29, 2006 (edited) 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 September 30, 2006 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 More sharing options...
tickling Posted September 29, 2006 Author Share Posted September 29, 2006 (edited) 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 September 29, 2006 by tickling Link to comment Share on other sites More sharing options...
GaryFrost Posted September 29, 2006 Share Posted September 29, 2006 I am getting thisLine 812 GuiListView.au3: $LVCF_SUBITEM not declaredLater 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 More sharing options...
GaryFrost Posted September 30, 2006 Share Posted September 30, 2006 try using ControlListView 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 More sharing options...
tickling Posted September 30, 2006 Author Share Posted September 30, 2006 Thanks Much gafrost ControlListView worked ! Link to comment Share on other sites More sharing options...
GaryFrost Posted September 30, 2006 Share Posted September 30, 2006 Thanks Much gafrostControlListView worked !That's what was used in the early versions of the UDF 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now