打開 google chrome 並使用 vbscript 更改 url

打開 google chrome 並使用 vbscript 更改 url

我想用 url 開啟 chrome。 10秒後,就需要重定向到其他url。

Dim iURL 
Dim iURL2
Dim objShell

iURL = "http://10.184.165.112/platform-gwt-war/"
iURL2 = "http://10.184.165.112/platform-gwt-war/#Plant_Equipment_Status"

set objShell = CreateObject("Shell.Application")
objShell.ShellExecute "Chrome.exe", iURL, "", "", 1
objShell.ShellExecute "Chrome.exe", iURL2, "", "", 2

這將打開 2 個選項卡。發送鍵也不起作用。

有什麼建議麼?

相關內容