Sign in to follow this  
Followers 0
CraigA

Object Reference to Existing IE Window

3 posts in this topic

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

Share this post


Link to post
Share on other sites



Hi.

_IEAttach()

Bye.

<_<

Share this post


Link to post
Share on other sites

Holly Blinky, I overlooked that one and I will give it a try.

Thanks so much,

Craig

Share this post


Link to post
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
Sign in to follow this  
Followers 0