0
我可以打开开始菜单,我可以展开开始菜单中的节点和子节点。现在,我该如何执行点击一个项目的动作,以便它将启动相应的应用程序。如何使用AutoIt单击Windows开始菜单中的项目?
问候, 纳齐尔
这里是我的代码的相关部分:
Send("^{ESC}") ;[CTRL][ESC] to open the start menu
WinWaitActive("Start menu","")
ControlClick("Start menu","","[CLASS:Button; INSTANCE:1]") ;click on 'All Programs'
$hTree = ControlGetHandle("Start menu", "", "[CLASS:SysTreeView32; INSTANCE:1]") ; get handle to the treeview window
ControlTreeView("Start menu","",$hTree,"Expand", "#0|#13") ; expand a node
ControlTreeView("Start menu","",$hTree,"Expand", "#0|#13|#10") ; expand a child node of the above node