jenkins操作TreeView,展开合并
双击treeview
双击选中的部分,使treeview展开合并
Opt("WinTitleMatchMode",2) #include <GUIConstantsEx.au3> #include <GuiTreeView.au3> #include <WindowsConstants.au3> #include <file.au3> #include <TreeViewConstants.au3> #include <MsgBoxConstants.au3> $studio="KD Studio" WinActivate($studio,"") ;获取目标TreeView $hWnd=ControlGetHandle($studio,"","SysTreeView321") $hItem =_GUICtrlTreeView_GetSelection($hWnd) _GUICtrlTreeView_ClickItem($hWnd, $hItem , "left", False,2, 2)