Jump to content

IE Attach


Recommended Posts

Hi, I was trying to attach to an internet explorer popup window. But how can I do that? I also need to attach to each IE until I find the value I need. But I can't even attach to it.

$IE_Array = WinList("[CLASS:IEFrame]", "")

If IsArray($IE_Array) Then
    For $i = 1 To $IE_Array[0][0]
        $oIE_Attach = _IEAttach($IE_Array[$i][0], "windowtitle") ; I tried "title" and "windowtitle" no luck.
        _IENavigate($oIE_Attach, "www.google.com") ;Just to test
        EndIf
    Next
EndIf

 

Link to comment
Share on other sites

2 hours ago, anthonyjr2 said:

Are you sure you are going into the for loop at all? Like if you put a message box there does it pop up?

I do get into the loop, but I get this msg below: Warning from function _IEAttach, $_IESTATUS_NoMatch

Link to comment
Share on other sites

13 minutes ago, anthonyjr2 said:

That means it isn't matching your window title. Use the AU3 info tool on the window to find out what the actual window title is.

I found the issue. It was not returning the windows title. So I changed to return window handle from

$IE_Array[$i][0]

 to

$IE_Array[$i][1]

 and changed _IEAttach from "title" to "hwnd". Thanks anyway.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

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