Dieuz Posted July 19, 2007 Share Posted July 19, 2007 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? Link to comment Share on other sites More sharing options...
mikehunt114 Posted July 19, 2007 Share Posted July 19, 2007 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] Link to comment Share on other sites More sharing options...
Dieuz Posted July 20, 2007 Author Share Posted July 20, 2007 (edited) Yes I read about that but How can I send text/keys to an hidden window? Edited July 20, 2007 by Dieuz Link to comment Share on other sites More sharing options...
LukeJrs Posted July 20, 2007 Share Posted July 20, 2007 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 Link to comment Share on other sites More sharing options...
mikehunt114 Posted July 20, 2007 Share Posted July 20, 2007 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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now