我使用下面的VBScript成功连接到远程机器但问题是它停在OK按钮 . 如果我手动点击确定然后机器正在打开 .
Set WshShell = WScript.CreateObject("WScript.Shell")
Set cloner = CreateObject("WScript.Shell")
cloner.run"mstsc"
'run remote desktop connection
WScript.Sleep 1000
cloner.SendKeys"DV01234"
cloner.SendKeys("{Enter}")
WScript.Sleep 1000
cloner.SendKeys"password"
cloner.SendKeys("{Enter}")
WScript.Sleep 1000
'cloner.run"cmd"
任何人都可以帮助我如何使用VB SCRIPT点击OK?
1 回答
如果您使用的是UFT 11.50(UFT是QTP的新名称),您可以使用Insight以使用基于图像的识别来识别 OK 按钮并单击它 .