yoruichiy Posted May 15, 2008 Posted May 15, 2008 hello, 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 Run("C:\WINDOWS\EXPLORER.EXE") ;MsgBox ( flag, "title", "text" [, timeout] );"#0|#0|#1" $item="#0|#0|#2" 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") ;GetSelected dim $a="nb items: "&$b&":"&$nb&" selectionne: "&$c MsgBox ( 4096, "test",$a ) thanks for your help
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