0
我無法弄清楚這一點。新窗口|瀏覽器互動
如果我打開瀏覽器,並且讓瀏覽器單擊一個打開新瀏覽器窗口的按鈕。我怎樣才能使下面的代碼適用於彈出的第二個窗口?
我的代碼仍適用於以前的窗口(我不想關閉)
Case $start
_IENavigate($oIE, "http://google.com")
sleep(5000)
For $i = 1 To $repeat1
Local $oInputs = _IETagNameGetCollection($oIE, "button")
For $oInput In $oInputs
If $oInput.classname == "button blue" Then _IEAction($oInput, "click")
Next
Sleep(3000)
WinActivate("YouTube - Internet Explorer")
Local $oInputs = _IETagNameGetCollection($oIE, "button")
For $oInput In $oInputs
If $oInput.classname == "yt-uix-button yt-uix-button-size-default yt-uix-button-opacity yt-uix-button-has-icon no-icon-markup like-button-renderer-like-button like-button-renderer-like-button-clicked yt-uix-button-toggled yt-uix-post-anchor yt-uix-tooltip" Then _IEAction($oInput, "click")
Next
Next
我改變了一些鏈接,但這裏主要的是如何將下面的代碼應用到新窗口(YouTube)