Jump to content

Object Reference to Existing IE Window


CraigA
 Share

Recommended Posts

My goal is to write a script that watches for a IE window with a title: "LOGIN - " and then enters a user id and password.

This login page is common for many web pages. Originally, I was writing a new script for each web page that needed this authentication using the IE Management functions. Each script would use Local $oIE = _IECreate (...) to launch the page and call _login($oIE) if needed.

Wanting just one script that constantly monitors for the "LOGIN - " page, I thought I would use WinWaitActive().

While 1 ; Loop Forever.
    WinWaitActive("[TITLE:LOGIN - ; CLASS:IEFrame]", "")
    ;??? get reference to the IE object ???
    _login($oIE)   ; There was a "Login" form, so login.
WEnd

How can I get a reference to the IE object so I can continue to use IE Managment functions?

Thanks,

Craig

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...