|
楼主 |
发表于 2012-11-9 17:33:30
|
显示全部楼层
#include <GuiTreeView.au3>
#include <GuiListView.au3>
$hTreeView=ControlGetHandle("[CLASS:NOTES]", "", "NotesLineView1")
ConsoleWrite("$hTreeView=ControlGetHandle"& StringFormat(":? %s",$hTreeView) &@LF)
$hFirst = _GUICtrlListView_GetItemSelected($hTreeView,1)
ConsoleWrite("$$hFirst = _GUICtrlListView_GetItemSelected"&StringFormat("=? %s", $hFirst)&@LF)
$hFirst = _GUICtrlTreeView_GetFirstItem($hTreeView)
ConsoleWrite("_GUICtrlTreeView_GetFirstItem"&StringFormat("=? %s", $hFirst)&@LF)
Exit
返回信息:
+> ============================================
>运行 AU3Check (1.54.22.0) 开始目录:D:\autoit3
+>17:32:43 AU3Check 完成[CODE]:0
>运行:(3.3.8.1):D:\autoit3\autoit3.exe "D:\table\桌面\test.au3"
$hTreeView=ControlGetHandle:? 0x000B0556
$$hFirst = _GUICtrlListView_GetItemSelected=? False
_GUICtrlTreeView_GetFirstItem=? 0x00000000
+>17:32:43 AutoIT3.exe 完成:[CODE]:0
+>17:32:45 ACNWrapper 完成..
>退出代码: 0 运行时间: 2.007 秒 |
|