chenxu Posted November 30, 2007 Posted November 30, 2007 #include <A3LTreeView.au3> $hWnd = ControlGetHandle("My Computer", "", 100) $hNode = _TreeView_FindNode($hWnd, "SomeDirectory") ConsoleWrite($hNode & @CRLF) _TreeView_ExpandItem($hWnd, $hNode, True, True) this code can not expand my explorer to the directory "SomeDirectory".
GaryFrost Posted November 30, 2007 Posted November 30, 2007 #include <GuiTreeView.au3> Run("explorer") WinWait("My Documents") WinActivate("My Documents") $hTreeView = ControlGetHandle("My Documents", "", "SysTreeView321") $hItem = _GUICtrlTreeView_FindItem($hTreeView, "My Computer") _GUICtrlTreeView_Expand($hTreeView, $hItem) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
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