Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Cannot get TreeView text anymore

$
0
0
I used to have a script that was able to sucessfully read the data from a TreeView, but somehow this list was changed, and while I am still able to set the cursor on the desired line, and read the number of items in the list, executing "GetText" will always come back empty, and sets @error to 1:

; "GetItemCount" returns the correct count:
$count = ControlTreeView($title,"",$treeID,"GetItemCount")
; "Select" activates the correct line
ControlTreeView($title,"",$treeID,"Select","#4")

; But none of these variations return anything but an error
$text = ControlTreeView($title,"",$treeID,"GetText")
$text = ControlTreeView($title,"",$treeID,"GetText",4)
$text = ControlTreeView($title,"",$treeID,"GetText",4,0)
$text = ControlTreeView($title,"",$treeID,"GetText","")
$text = ControlTreeView($title,"",$treeID,"GetText","#4")
$text = ControlTreeView($title,"",$treeID,"GetText","#4","")


Another thing that seems to be strange is that if I select line #2, which looks like it has sub-items, the "GetSubItemCount" command will return 0, and sets @error to 1.

Attached Thumbnails

  • tree.gif

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>