试了,还是不行这样写的Run("control.exe netconnections")
WinWaitActive("网络连接","")
WinActivate("网络连接","")
Send("{SPACE}")
Send("!{ENTER}")
WinWaitActive("本地连接 属性","")
WinActivate("本地连接 属性","")
ControlClick("本地连接 属性","","Button1")
WinWaitActive("Realtek PCIe GBE Family Controller 属性","")
WinActivate("Realtek PCIe GBE Family Controller 属性","")
Send('^{TAB}')
WinWaitActive("Realtek PCIe GBE Family Controller","高级")
WinActivate("Realtek PCIe GBE Family Controller","高级")
Sleep(1000)
Send('{DOWN 9}')
Sleep(1000)
ControlClick("本地连接 属性","","Button1")
前后都加了延迟,用窗口信息看了,的确是Button1 |