AUTOIT:如何在现有应用程序中展开树视图?

时间:2013-06-10 04:01:55

标签: autoit

例如是我的电脑。如何自动扩展“计算机”树?

#include <GuiTreeView.au3>
Run("C:")
WinWaitActive("My Computer")
$hTreeView = "SysTreeView32"
_GUICtrlTreeView_Expand($hTreeView)

1 个答案:

答案 0 :(得分:1)

更新:

您可以运行 shell:MyComputerFolder 命令,它会将您带到我的电脑: http://winaero.com/blog/the-full-list-of-shell-commands-in-windows-8/

最后,您可以运行 explorer.exe / e,:: {20D04FE0-3AEA-1069-A2D8-08002B30309D} ,它将带您进入MyComputer:http://www.msfn.org/board/topic/51661-make-explorer-start-with-my-computer/


当您打开C:\时,您可以发送ALT + Up,这将带您进入我的电脑。

也可以看到这一点:How do I programmatically open the "Libraries" folder in Windows Explorer in Windows 7?