Jump to content

ControlTreeView - GetItemCount returns 0


cw86
 Share

Recommended Posts

Hello,

I have an issue where I am attempting to get the item count from a SysTreeView32 control from an install wizard - see attached screenshot.

I have verified the correct handle is being returned by comparing the return value from ControlGetHandle vs the control handle displayed in the AutoIt v3 Window Info tool.

I have also tried using _GUICtrlTreeView_GetCount, which also returns 0.

 

$hTreeView=ControlGetHandle("VLC media player Setup","","[CLASS:SysTreeView32; INSTANCE:1;]")
MsgBox($MB_SYSTEMMODAL, "Title", ControlTreeView("VLC media player Setup","",$hTreeView,"GetItemCount"), 10)
MsgBox($MB_SYSTEMMODAL, "Title", _GUICtrlTreeView_GetCount($hTreeView), 10)

 

Any help would be greatly appreciated!

tree.JPG

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