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)

 

posted @ 2019-08-30 16:12  qian@@jing  阅读(301)  评论(0编辑  收藏  举报