Jump to content
Sign in to follow this  

ControlTreeView - GetItemCount returns 0

Recommended Posts



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!


Share this post

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
Sign in to follow this