Windows("RIB office V2.1").window("RIB office").winTreeView("SysTreeView32").click "95","163",micRightBtn
Set WshShell=CreateObject("Wscript.Shell")
For i=1 to idx
WshShell.sendkeys{"DOWN"}
Next
WshShell.Sendkeys{"Enter"}
set Wshshell=nothing
然后我用尝试了用这种方法去右键打开桌面上"我的电脑",问题解决了,不过我直接录制右键打开"我的电脑",也可以回放成功,具体的代码如下:
Windown("Program Manager").WinListView("SysListView32").Select "My Compute",micRightBtn
Windown("Program Manager").WinObject("SHELLDLL_Defview").WinMenu("ContextMenu").Select "Open"