Jump to content

treeviews


Recommended Posts

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

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