Jump to content
Sign in to follow this  


Recommended Posts


could you tell me why my code isn't working correctly, for more than 2 nodes of the tree, autoit can't count items, this is an example with windows explorer

;MsgBox ( flag, "title", "text" [, timeout] );"#0|#0|#1"
WinWaitActive("My Documents","")
WinSetTitle("My Documents","","explorateur windows")
ControlTreeView("explorateur windows","",100,"Expand",$item)
$nb=ControlTreeView("explorateur windows","",100,"GetItemCount",$item)
$b=ControlTreeView("explorateur windows","",100,"GetText",$item)
$c=ControlTreeView("explorateur windows","",100,"GetSelected")
dim $a="nb items: "&$b&":"&$nb&" selectionne: "&$c
MsgBox ( 4096, "test",$a  )

thanks for your help

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  

  • Create New...