0
我有Web窗體,當我用Vb腳本填寫字段時我彈出消息框確定/取消。 我不能讓我的腳本點擊那個確定按鈕。任何人有解決方案VBscript自動點擊確定彈出按鈕
Set IE = Createobject("InternetExplorer.Application")
IE.Navigate "*******/page"
IE.Visible = True
Wscript.Sleep 500
IE.Document.All.Item("user").Value = "username"
IE.Document.All.Item("pass").Value = "password"
IE.Document.All.Item("submit").Click ' ******here popup window appears
Wscript.Sleep 500
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "{ENTER}" ' ******this does not execute
你試過WshShell.SendKeys「%o」而不是? – Rich
它執行IE以外的SendKeys方法。它不能看到彈出式消息框。 – user3409440