Sign in to follow this  
Followers 0
Dieuz

Navigate in IE

5 posts in this topic

Hi,

I'm really new to every IE.au3 commands and I was wondering if I can achieve this with an Autoit script:

At startup,

1. Launch an "hidden" Internet explorer window

2. Navigate to "www.hotmail.com" in this hidden IE window

3. Send the Email adress + password to the input box in IE

4. When the Inbox open on hotmail, Unhide this window

I'm asking this because I'm making a task manager and I want on startup that hotmail Inbox open.

How can I do such things in an hidden IE window then Unhide the window?

Share this post


Link to post
Share on other sites



All can be done. Look into the helpfile regarding the IE functions. To make the window visible or hidden, adjust the "visible" property using _IECreate or _IEPropertySet.


IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Yes I read about that but How can I send text/keys to an hidden window?

Edited by Dieuz

Share this post


Link to post
Share on other sites

CODE
#include <IE.au3>

; Create a browser window and navigate to hotmail

$oIE = _IECreate()

_IENavigate($oIE, "http://www.hotmail.com")

; get pointers to the login form and username and password fields

$o_form = _IEFormGetObjByName($oIE, "f1")

$o_login = _IEFormElementGetObjByName($o_form, "login")

$o_password = _IEFormElementGetObjByName($o_form, "passwd")

; Set field values and submit the form

_IEFormElementSetValue($o_login, "your username here")

_IEFormElementSetValue($o_password, "your password here")

_IEFormSubmit($o_form)

Exit

Share this post


Link to post
Share on other sites

Yes I read about that but How can I send text/keys to an hidden window?

If you be a bit more descriptive, I'm sure we can suggest a way NOT to "send text/keys" to the window. Most everything can be done with the _IE functions. If you are trying to populate inputs like username and password fields, get a reference to the objects as in the example posted above this, and then use _IEFormElementSetValue, or something of the like.


IE Dev ToolbarMSDN: InternetExplorer ObjectMSDN: HTML/DHTML Reference Guide[quote]It is surprising what a man can do when he has to, and how little most men will do when they don't have to. - Walter Linn[/quote]--------------------[font="Franklin Gothic Medium"]Post a reproducer with less than 100 lines of code.[/font]

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