Jump to content

New Window | Browser


Recommended Posts

I can't figure this out.

If I have a browser open, and I make the browser click on a button that opens up a new browser window. How can I make the following code to apply to the second window that popped up?

My code is still applying to the previous window (which I don't want to close)

Case $start
               _IENavigate($oIE, "http://google.com")
               For $i = 1 To $repeat1

                  Local $oInputs = _IETagNameGetCollection($oIE, "button")
                  For $oInput In $oInputs
                     If $oInput.classname == "button blue" Then _IEAction($oInput, "click")



                  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")


I changed some links, but the main thing here is how to apply the next code to the new window (YouTube)

Link to comment
Share on other sites

You should retrieve href url and create new windows through


instead of clicking on buttons.

If you want to follow your way, you can get new window object through



Edited by j0kky
Link to comment
Share on other sites

  • Developers

seriously ...  just learning?

Not convinced ...  and better not try this again.
Maybe they have better support, but seems your are burning credit there as well.



Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
Live for the present,
Dream of the future,
Learn from the past.

Link to comment
Share on other sites

  • Jos locked this topic
This topic is now closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...